diff --git a/README.md b/README.md index 6a0b10e..41d9aca 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ Misc
Misc
Elastic
Elastic
Kafka
Kafka
+ NodeJs
NodeJs
diff --git a/images/nodejs.png b/images/nodejs.png new file mode 100644 index 0000000..9349c81 Binary files /dev/null and b/images/nodejs.png differ diff --git a/topics/node/node_questions_basic.md b/topics/node/node_questions_basic.md new file mode 100644 index 0000000..dcdcfd6 --- /dev/null +++ b/topics/node/node_questions_basic.md @@ -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 ? diff --git a/topics/node/solutions/node_questions_basic_ans.md b/topics/node/solutions/node_questions_basic_ans.md new file mode 100644 index 0000000..fa413f0 --- /dev/null +++ b/topics/node/solutions/node_questions_basic_ans.md @@ -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 +