var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain' }); res.end('Hello World\n'); res.writeHead(200, {'Content-Type': 'text/plain' }); res.end('Hello World\n'); }).listen(1337, "127.0.0.1"); console.log('Server running at http://127.0.0.1:1337/');
Node.js is a great runtime enviroment, based on Google's V8 javascript engine. It's fun to code server-side applications, as well as desktop applications with the help of node-webkit.
class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); // Print Hello World } }
Java, the one I learned coding with... It's great for multi platform programming, but also for the Web (ok, these days nodejs is an better alternative).
<!DOCTYPE html> <html> <head> <title>Servus!</title> </head> <body> <h1>Hello, World!</h1> </body> </html>
I love to design websites and little tools with html, css and sometimes javascript, too.