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
Which symbol is used for comments in JavaScript?
2
What is the difference between == and === operator?
3
What are setTimeout, setInterval and clearInterval in JavaScsript?
4
What do mean by NULL in JavaScript?
5
What is an undefined value in JavaScript?