mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-04 23:59:11 +00:00
* feat: added nodejs module on the topics and shared some basic question asked in interview * fix: added image and link in the readme file
1.1 KiB
1.1 KiB
ANSWERS
- Node.js is an open-source, cross-platform JavaScript runtime environment that allows developers to build server-side and networking applications.
- Nodejs is a single threaded langauage . It handles one operation at a time.
- Node.js works by executing JavaScript code in a runtime environment outside of a web browser.
- 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
- Parent process manages the child process but not depend on the clid process to run parralel
- Three Modules mainly
- Core Module - fs , require
- Local modules - like function created by us and exported or imported from one file to another
- Third Party module - like npm pacakages whcih we install to do a specific kind of work
- NPM (Node Pacakage Manager) used for installing, managing, and sharing JavaScript packages and dependencies.
- 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