Preparation for Node.js interview - Things to know

1.  Key concepts :-
    Single threaded -->
    async -->
    shared  -->
    event loop -->
    minimum use of resources -->
    multitasking     --> 
    Non-blocking I/O  -->

2.  Global object:-
     Variables are Scoped only to the module ()

3.  Back tics ( `this is back tic ${str}`) -->  will print value of the str


4. Current directory
      procees object --> stores current proccess information,
      process.argv () , user provided cmd line arguments

5.  Require (to load a module which is globally available)

6. process.stdout.write(''string");  . process.stdin.on(''string");

7. I/O operations

8. process.stdout.clearline --> (will erase text in command line)
    process.stdout.cursotTo(0) -->(it will move cursor to beginning  of the line)

9. Global timing function :-

10. path --> will give the full path
     pluck filename from full path using path  ${path.basename(_.filename)}

11. Rest Apis:-

12. major.minor.patch
1.0.2

So if you see ~1.0.2 it means to install version 1.0.2 or the latest patch version such as 1.0.4. If you see ^1.0.2 it means to install version 1.0.2 or the latest minor or patch version such as 1.1.0.

https://michaelsoolee.com/npm-package-tilde-caret/

------------------------------------------------------------------------
References:-
https://medium.freecodecamp.org/building-a-simple-node-js-api-in-under-30-minutes-a07ea9e390d2
https://repl.it/languages/nodejs (online node editor)
http://a4academics.com/interview-questions/79-web/802-nodejs-interview
https://blog.risingstack.com/node-js-interview-questions-and-answers-2017/






Comments

Popular posts from this blog

Set up your VOIP based SIP soft phone and know more about VOIP

Front End Developer Interview quiestions- All in single blog

Data Science v/s Data engineer v/s Data Analyst