In simple terms, NodeJS is a way to run your website on certain ports in your machine, that would be able for us to forward the port so others can access it. There's alternative way in doing this that is WAMP services.
FYI, there's a lot of farmwork build on top of NodeJS, such as ReactJS, NextJS and Express.