Web Reality

Web Reality

Share

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

Want your business to be the top-listed Engineering Company in Dhaka?
Click here to claim your Sponsored Listing.

Website

Address

Dhaka