1. Home
  2. Computer Science MCQs
  3. Javascript
  4. Which function is used to schedule the execution of a…

Added 28 Jan 2024

Which function is used to schedule the execution of a function after a specified delay in JavaScript?

  1. setTimeout() Correct answer
  2. setInterval()
  3. setDelay()
  4. delayFunction()

Correct answer

A. setTimeout()

15 views

MCQSEXAM

Explanation

The "setTimeout()" function is used to execute a function after a specified delay, enabling asynchronous operations in JavaScript.

Video explanation

Reference

https://www.w3schools.com/js/default.asp

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Javascript MCQs

Practise all Javascript MCQs

Similar MCQs