Skip to content

Instantly share code, notes, and snippets.

View tripathi-suraj's full-sized avatar

Suraj Tripathi tripathi-suraj

View GitHub Profile
@tripathi-suraj
tripathi-suraj / NodeJs.md
Last active May 4, 2024 02:38
NodeJs Interview Questions

1.What is Nodejs?

Node.js is an extremely powerful framework developed on Chrome’s V8 JavaScript engine that compiles the JavaScript directly into the native machine code. Node.js is perfect for data-intensive applications as it uses an asynchronous, event-driven model. You can use I/O intensive web applications like video streaming sites.

How Nodejs Works

2.What is Node.js Process Model?

Node.js runs in a single process and the application code runs in a single thread and thereby needs less resources than other platforms. All the user requests to your web application will be handled by a single thread and all the I/O work or long running job is performed asynchronously for a particular request. So, this single thread doesn't have to wait for the request to complete and is free to handle the next request. When asynchronous I/O work completes then it processes the request further and sends the response.

3.How do

ES6

  • ES6 also known as esnext or es2015

Tooling

  • To work with ES6 we need a javascript transpiler,i.e. code in newer version of javascript(i.e. es6) and transpile into older version (es5) of javascript because some of the does not support es6.
  • Use babel to transpile es6 into es5 for static build
Destructuring
@tripathi-suraj
tripathi-suraj / nvm.md
Last active January 17, 2020 13:40
nvm
@tripathi-suraj
tripathi-suraj / JS.md
Last active January 16, 2020 10:45
Javascript curry
<title>JS</title>
@tripathi-suraj
tripathi-suraj / gitsheet.md
Last active January 17, 2020 07:15
git.readsheet

Git

Connect your existing repository

git remote add origin [remote-url]
e.g. git remote add origin https://suraj-tripathi-india@bitbucket.org/suraj-tripathi-india/ngb-datatable.git

Clone

git clone is used to create a copy of a target repo

git clone [remote-url]

@tripathi-suraj
tripathi-suraj / Readme.md
Last active January 10, 2020 06:42
React
<title>React</title>