What's the difference between node.js and js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What's the difference between node.js and js

I just want to know

21st Mar 2021, 6:30 PM
DURU SOMTOCHUKWU PHILIP
DURU SOMTOCHUKWU PHILIP - avatar
3 Answers
+ 7
JavaScript is a language. It was originally developed to run on web browsers. That's often referred to as client-side (frontend). Node.js, sometimes referred to as simply Node, is a server-side (backend) JavaScript runtime environment. This means it runs JavaScript outside of a browser environment. Before technologies like Node came along, JavaScript was usually just run in the browser, meaning it was limited to frontend code. Node is now quite popular. That's in part due to libraries which integrate with Node such as Express. Companies using Node include LinkedIn, Microsoft, Netflix, PayPal and Amazon Web Services (AWS). The use of Node and others such as the newer Deno, mean that both the backend and frontend code can be written in the same language: JavaScript. This is often an advantage for software companies because it allows frontend and backend developers to work across these areas more easily.
21st Mar 2021, 7:14 PM
CamelBeatsSnake
CamelBeatsSnake - avatar
+ 2
The simpler definition Js is a programing language where's node.js is framework It's like father and son which js is father and created many sons and from many sons node.js is the one The complex one Node js is servers side JavaScript framework and also build tool which used as bridge for some important libraries and javascript
21st Mar 2021, 6:36 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
0
Martin Taylor Interesting history. I agree with you that how you define popular is key. Whilst PHP is widely used as that stat shows, Node is growing. Node is the most widely used technology of its kind in the Stack Overflow global survey, with 51.9% of the professional developers. Node's popularity is growing for a number of reasons. Not least because of how popular JavaScript is. It's the most widely used language in the Stack Overflow survey for the 8th year in a row, with 69.7% amongst professional developers compared to 25.8% for PHP. JS is also the most popular language on GitHub with 20% of PRs, compared to 8th-placed PHP with 5% of PRs. Node is also helped by the fact that a lot of well-known companies use it. On top of the ones I named earlier, there's also Trello, Uber, Airbnb, Instagram, eBay, NASA, and Medium. Another thing to remember is that PHP has been around for a lot longer than Node. So I for one wouldn't be surprised if that market share for Node continues to grow.
22nd Mar 2021, 1:57 AM
CamelBeatsSnake
CamelBeatsSnake - avatar