Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

JAVASCRIPT HELP PLZ!!!! 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); in this code, on the last line, how come onRequest doesn't take parameters?? (it's supposed to take 2 parameters right?)

OpenStudy (dumbsearch2):

What is the function writehead?

OpenStudy (dumbsearch2):

Do you happen to know if this is node.js?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!