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);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly