-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added nodejs module on the topics and shared some basic questio…
…n asked in interview (#10267) * feat: added nodejs module on the topics and shared some basic question asked in interview * fix: added image and link in the readme file
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# NODEJS BASIC INTERVIEW QUESTIONS | ||
|
||
# OBJECTIVE | ||
|
||
To Tell about the basic questions asked in node to me in many interviews | ||
|
||
1. What is Nodejs ? | ||
2. How many threads does nodejs have ? | ||
3. How do nodejs work ? | ||
4. Is nodejs Single Threaded Or Multi Threaded ? | ||
5. what is node cluster ? | ||
6. Does parent process depends on the child preocess ? | ||
7. How many types of module do nodejs have ? | ||
8. Why nodejs ? | ||
9. What is npm ? | ||
10. Difference between pacakage.json and pacakage-lock.json ? | ||
11. What is the difference betwwen creating a server with http and a framework ? | ||
12. What do you mean by non-blocking ? | ||
13. What is event loop ? | ||
14. What is event driven ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ANSWERS | ||
|
||
1. Node.js is an open-source, cross-platform JavaScript runtime environment that allows developers to build server-side and networking applications. | ||
2. Nodejs is a single threaded langauage . It handles one operation at a time. | ||
3. Node.js works by executing JavaScript code in a runtime environment outside of a web browser. | ||
4. Node.js works by executing JavaScript code in a runtime environment outside of a web browser. mainly used for performance and scalabilty od the project | ||
5. Parent process manages the child process but not depend on the clid process to run parralel | ||
6. Three Modules mainly | ||
1. Core Module - fs , require | ||
2. Local modules - like function created by us and exported or imported from one file to another | ||
3. Third Party module - like npm pacakages whcih we install to do a specific kind of work | ||
7. NPM (Node Pacakage Manager) used for installing, managing, and sharing JavaScript packages and dependencies. | ||
8. Difference between pacakage.json and pacakage-lock.json | ||
1.pacakage.json - contains the metadata and the dependendies of a project | ||
2.pacakage-lock.json - lock the version of the installed dependencies | ||
|