Javascript
Node.js
event driven Javascript, on the server
command+option+i for developer console on mac
A click is an event event driven javascript
$(function(){
$('a').on('click', function(){
console.log('hi');
});
});
‘a’ part is for “ tag”, on click, it console.log “hi”
example 3: Overused web server example
var onConnection = function (req, res)
createServer is a function that needs a function to run when someone connects to it.
.pipe is the callback for what the request is