Don't forget to checkout How to Install Node.js and hotnode.
<html> <head> <title>This is my Index.html</title> </head> <body> Hello World! </body> </html>Code language: HTML, XML (xml)
It's easy to get overwhelmed with this bunch of code.
I'm not going to break it down but if you look at it I'm sure you won't have any problems understanding it.
Thanks for this example, Richard! Why did you declare
rather than using
in your function calls? Is it faster?
Oh, it’s been more than two years since I wrote this. Also it’s been a while since I played with NodeJS, not much action in the real world.
I don’t know the answer, honestly I can’t remember. Feel free to play with it and if you find it performs differently, let us know! 😉