Node js Interviews Q/A


Node Js Interviews Questions & Answers




## Q. ***What does the runtime environment mean in Node.js?***

The Node.js runtime is the software stack responsible for installing your web  service\'s code and its dependencies and running your service.

The Node.js runtime for App Engine in the standard environment is declared in  the `app.yaml` file:

```js
runtimenodejs10
```

The runtime environment is literally just the environment your application is  running in. This can be used to describe both the hardware and the software that  is running your application. How much RAM, what version of node, what operating  system, how much CPU cores, can all be referenced when talking about a runtime  environment.



## Q. ***What is Node.js?***

Node.js is an open-source server side runtime environment built on Chrome\'s V8 JavaScript engine.  It provides an event driven, non-blocking (asynchronous) I/O and cross-platform runtime environment for building highly scalable server-side applications using JavaScript.



## Q. ***What is Node.js Process Model?***

Node.js runs in a single process and the application code runs in a single thread  and thereby needs less resources than other platforms. All the user requests to  your web application will be handled by a single thread and all the I/O work or  long running job is performed asynchronously for a particular request. So, this  single thread doesn't have to wait for the request to complete and is free to  handle the next request. When asynchronous I/O work completes then it processes  the request further and sends the response.






Comments