JavaScript Flashcards
Learn javascript in preparation of interviews
1
Q
What is an example of setInterval()?
Parameters are flashText and 1000 miliseconds
A
setInterval(flashText, 1000);
2
Q
What is setInterval()?
A
The setInterval() method of the Window interface repeatedly calls a function or executes a code snippet, with a fixed time delay between each call.
3
Q
What is clearInterval(intervalId)?
A
The clearInterval() method of the Window interface cancels a timed, repeating action which was previously established by a call to setInterval(). If the parameter provided does not identify a previously established action, this method does nothing.