Tuesday, April 23, 2019

Node js interview questions


This blog is just for revision .


  • Explain the version of a package in node js 
  1. major
  2. minor
  3. patch
  4. pre major
  5. pre minor
  6. pre patch
  7. pre release
  • What is the use of ~ and ^
  1. ~ matches the most recent patch version for the minor version
  2.  ^ matches the most recent minor version of the major version     

  • What are modules

Modules are way of organising reusable components


  1. Core
  2. Local
  3. Third party



  • What is the use of require()


It is used to import core modules.It is a function that can be used to import symbols from another module to the current scope



  • What is commonjs

Commonjs defines standards for modules, packages and unit testing.



  • What is AMD ?

Asynchronous


  • Explain the parts of package.json
  1. name
  2. version
  3. license
  4. description

  • Explain async functions
  • Explain await

No comments:

Post a Comment

ec2-user@ec2 Permission denied