mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2024-11-19 20:31:47 +02:00
feat: added nodejs module on the topics and shared some basic question 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
This commit is contained in:
parent
b2e29b87bf
commit
f9f1fd6023
@ -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>
|
||||
|
BIN
images/nodejs.png
Normal file
BIN
images/nodejs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
20
topics/node/node_questions_basic.md
Normal file
20
topics/node/node_questions_basic.md
Normal file
@ -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
topics/node/solutions/node_questions_basic_ans.md
Normal file
16
topics/node/solutions/node_questions_basic_ans.md
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user