V
V
Viktor Zorin2017-09-30 16:44:26
JavaScript
Viktor Zorin, 2017-09-30 16:44:26

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

2 answer(s)
A
Anton, 2017-09-30
@SPAHI4

learn.javascript.ru/screencast/nodejs
code is outdated, but a very good screencast

A
Andrey Chereshnev, 2020-04-14
@Andryhv

https://stackoverflow.com/questions/19059580/clien...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question