Friday 27 November 2015

Trying to create a basic server but output messages aren't printing.

Hi there!I'm new to using Node JS and have been following along with a tutorial to help me learn how to set it up and use it.Only problem is I can't seem to get any of my outputs to print while setting up the server. Here's what it's doing and here's the code I'm using.When I go to the node.js command prompt and type node [enter] console.log('test');it prints: test undefinedSo I don't think it's a matter of it being installed incorrectly. Either way, if someone can help me out I'd very much appreciate it. Thanks in advance!

Submitted November 27, 2015 at 10:19AM by thatprogrammingnewb

No comments:

Post a Comment