JS interview Question/ Answers Set – 1

JS interview Question/ Answers Set – 1

  • Undefined: When we just declare a variable but have assigned no value or variable is not declared. Example: value; console.log(value); ==> undefined
  • Null: Identifiers or names given to functions, variables, does exist, but has no value. i.e. value is null. Example: val = null
  • Empty String: When a variable with the string data type does not contain any character data. Example: a =””;
Although both of the operators belong to the comparison operator category, the '==' operator checks the given values, whereas the '===' behaves like an equality operator and checks both the value and their type
NPM is a package manager for JavaScript. NPM is designed to put modules intact so that nodes when the need can find them. It is designed to maintain and serve conflicts arising in dependencies. It is mostly used to install programs, configure them, publish and develop them using the intact resources in the modules.
Pair programming is a practice where two developers work using only one machine to solve the problems at hand. Each programmer will have a keyboard and a mouse. While one programmer (the driver) will perform the coding, the other (the observer) will check the code while also figuring out where to go next. The two programmers switch roles frequently.

Post Your Comments & Reviews

Your email address will not be published. Required fields are marked *

*

*