Update index.md (#23927)

Minor description improvement on first point on V8 engine.
This commit is contained in:
Rick McKay
2018-12-11 15:42:37 -07:00
committed by Manish Giri
parent 49d3499765
commit 2d94d85edb

View File

@ -10,8 +10,8 @@ title: Node.js
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
#### Let's break it down.
- Javascript runtime built on Chrome's V8 JavaScript engine.
Every browser has a JavaSript engine built in it to process JavaScript files contained in websites. Google Chrome uses V8 engine which is built using C++. Node.js also uses this super-fast engine to interpret JavaScript files.
- Javascript runtime built on Google Chrome's V8 JavaScript engine.
Every browser has a JavaSript engine built in it to process JavaScript files contained in websites. Chrome uses V8, which is built using C++. Node.js also uses this super-fast engine to interpret JavaScript files.
- Node.js uses an event-driven model.
This means that Node.js waits for certain events to take place. It then acts on those events. Events can be anything from a click to a HTTP request. We can also declare our own custom events and make node.js listen for those events.
- Node.js uses a non-blocking I/O model.