JavaScript Sprachraum
- 28. Just get out there and use itYou may be working at a different level than you’re used to
- 32. var http = require('http');http.createServer(function (request, response) { response.writeHead(200, { 'Content-Type': 'text/plain'}); response.end('Hello World');}).listen(8124);
- 33. var http = require('http'); varg = http.createClient(80, 'www.google.com'); var request = g.request('GET', '/', { 'host': 'www.google.com'}); request.end(); request.on('response', function (response) { // do something with the response});
- 39. vows.describe('Zero').addBatch({ 'When dividing by zero': { topic: function () { return 2/0 }, 'we get Infinity': function (t) { assert.equal (t, Infinity); } }}).run();
- 44. “Once you work out the social aspects of a problem, the technical stuff is usually pretty straightforward.”Isaac Schlueter
- 45. package.json{ "name":”pk", "version": "0.0.1", "dependencies": { "coffee-script": "0.9.2", "vows": "0.5.1", "hamljs": "0.4.5", "express": "1.0.0", "less": "1.0.32” } }