Answer the question
In order to leave comments, you need to log in
How to embed Node.js code in an HTML page?
So that's the thing. I needed node.js because it simplifies many of the features I need to work with JS and makes it easier to connect new libraries using npm. If in Html we embed Js code into the page using script src="script name">/script>, is it possible to embed Node.js code in the same or similar way?
I'm pretty sure it's possible to automate node myjs.js and run the node code right after we open the page.
So tell me this method, if anyone knows.
PS Thanks in advance
Answer the question
In order to leave comments, you need to log in
learn.javascript.ru/screencast/nodejs
code is outdated, but a very good screencast
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question