Code Snippet Sample

$ sudo make me a sandwich
This is sample
class Sample
  def sample
    "sample"
  end
end
(server.js) download
var http = require('http');
http.createServer(function (req,  res) {
          res.writeHead(200,  {'Content-Type': 'text/plain'});
            res.end('Hello World\n');
            }).listen(8124,  "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');
Awesome code snippet
Javascript Array Syntax MDN Documentation
var arr1 = new Array(arrayLength);
var arr2 = new Array(element0,  element1,  ...,  elementN);

Comments