Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added nodejs module on the topics and shared some basic question asked in interview #10267

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -94,6 +94,7 @@
<td align="center"><a href="#Misc"><img src="images/general.png" width="75px;" height="75px;" alt="Misc"/><br /><b>Misc</b></a></td>
<td align="center"><a href="#elastic"><img src="images/elastic.png" width="75px;" height="75px;" alt="Elastic"/><br /><b>Elastic</b></a></td>
<td align="center"><a href="topics/kafka/README.md"><img src="images/logos/kafka.png" width="85px;" height="80px;" alt="Kafka"/><br /><b>Kafka</b></a></td>
<td align="center"><a href="topics/node/node_questions_basic.md"><img src="images/nodejs.png" width="85px;" height="80px;" alt="NodeJs"/><br /><b>NodeJs</b></a></td>
</tr>

</table>
Expand Down
Binary file added images/nodejs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions 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 ?
16 changes: 16 additions & 0 deletions 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