JavaScript Interview questions


Total available count: 22
Subject - JavaScript Frameworks
Subsubject - JavaScript

What is a prompt box?

A prompt box is a box which allows the user to enter input by providing a text box popup.  When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value. 

  • If the user clicks "OK" the box returns the input value as shown in the below code
  • If the user clicks "Cancel" the box returns null.

var website = prompt("Please enter the website name - ", "Slightbook");




Next 5 interview question(s)

1
What is 'this' keyword in JavaScript?
2
What is NEGATIVE_INFINITY?
3
What is the use of isNaN function?
4
What is break and continue statements?
5
What are the different types of data types in JavaScript?