function say(word){
console.log(word)
}
function execute(someFunction,value){
someFunction(value)
}
execute(say,"HelloWorld")
// 匿名函数
function execute(someFunction,value){
someFunction(value)
}
execute(function(word){console.log(word)},"HelloWorld")
var http = require("http");
function onRequest(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}
http.createServer(onRequest).listen(8888);