0
Fill in the blanks to call the function "calc()" every 2 seconds:???
setInterval( , );
5 Respuestas
+ 2
calc and 2000
+ 2
The answer is calc and 2000
+ 1
The Answear is calc and 2000
+ 1
calc
2000
- 1
The complete code would be this:
setInterval(calc, 2000);
This would work only if the calc function is already defined. The setInterval syntax is explained here:
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval