03/02/2024
js interview series
π1. ππππ ππ πππ
π ππ ?
Node.js is an open-source, cross-platform, back-end JavaScript ππ’ππ‘πππ πππ£ππππππππ‘ that runs on the πΆβππππ π£8 ππππππ using c++. and executes JavaScript code outside a web browser.
As a πππ-ππππππππ(ππ π¦ππβπππππ’π ) πΌ/π and ππ£πππ‘-ππππ£ππ JavaScript runtime, Node.js is designed to build scalable network applications.
Javascript was always a client side language until node.js launched on 2009 and it allows developers to write JavaScript code that runs directly in a computer process itself instead of in a browser. and thus it can be used to write server-side applications with access to the operating system, file system, and everything else required to build fully-functional applications.
π2. ππππ ππ πππππππ πππππππππππ?
A runtime environment refers to the specific context or set of conditions in which a program or software application executes or runs.
primarily as a client side language, browsers runtime environment was used to execute js code before node js arrived. Arrival of node js , make possible to run js code out of browsers context.
π3. πΎππ ππ ππππ
πππππππ πππππππππππ?
Runtime environment not only just execute programming files, but also provides interface between hardware and program that is executed inside environment.
In order to operate our program into different OS, we need to make many versions of codes that is executable for each OS. However thanks to runtime environment, we can use one program into other OS.
For example, we can use program that is written in javascript on IOS, Linux, Windows, etc.
πππππππ ππ ππππ: v8 engine, non-blocking I/O, event-driven
hashtag hashtag hashtag hashtag