JavaScript Interview questions


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

What are setTimeout, setInterval and clearInterval in JavaScsript?

  1. The setTimeout(function, delay) function is used to start a timer that calls the  function argument after the delay argument value
  2. The setInterval(function, delay) function is used to execute the function argument in the regular intervals based on the delay argument value
  3. The clearInterval(id) function instructs the timer to stop the execution



Next 5 interview question(s)

1
What is the difference between == and === operator?
2
Which symbol is used for comments in JavaScript?
3
What is a prompt box?
4
What is 'this' keyword in JavaScript?
5
What is NEGATIVE_INFINITY?