Back to Dashboard

JS Interview Questions

JavaScript is a client-side as well as server side scripting language that can be inserted into HTML pages and is understood by web browsers. JavaScrip
Following are the JavaScript Data types:
  1. Number
  2. String
  3. Object
  4. Boolean
isNan function returns true if the argument is not a number otherwise it is false.
Netscape is the software company who developed JavaScript.
A prompt box is a box which allows the user to enter input by providing a text box. Label and box will be provided to enter the text or number.
'This' keyword refers to the object from where it was called.
Methods of Commenting in JS are
  1. // for Single line comments and
  2. /* Multi Line Comment */
=== is called as strict equality operator which returns true when the two operands are having the same value without any type conversion.