Tuesday, 16 October 2018

Very stupid question, but I'm kind of lost

DL'd node, doing some basic stuff so far, but my stupid question is this: Where do the node files go, and how do they run?Right now, I do node project1.js to run the code, but on a hosted web server, is node always running? And if there's an error in my code, right now the command line will indicate that, sometimes even stopping the code from running when there's an error. Then what would happen?By which I mean you've got an HTML file, some javascript, but node is server side, so how does that get called in HTML?Yes, I know, I can hear eyes rolling from here, but I'm ignorant to the point of not knowing the right terms to search for or even how to phrase my question properly.

Submitted October 16, 2018 at 07:43PM by orksaredorks

No comments:

Post a Comment