5
itzyzex
6y

What is ther difference between node and javascript

Comments
  • 2
    JavaScript runs as part of a web page (html) whereas NodeJS runs JavaScript as a standalone application with no UI.

    So in JavaScript you have access to the HTML Document Object Model (DOM) to manipulate a web page and NodeJS you load different libraries with Node Package Manager (NPM) to achieve different goals (running a web server is the main one, but you can do other stuff as well)
  • 2
  • 2
    Basically, with Node.js you can do back-end with JS scripts, and it's great because of compatibility with front-end javascript
  • 6
    JavaScript is a language. Node is a runtime environment, for which you can write code in JavaScript.
  • 1
    @runfrodorun ikr
  • 6
    Javascript is a framework written in C++ that lets you instantiate startups and earn money by the virtue of existence. Think free as in beer.

    Node is a wrapper around npm that lets you use public parts of other peoples' startups to generate even more money.
Add Comment