0

Fill in the blanks to call the function "calc()" every 2 seconds:???

setInterval( , );

27th Nov 2019, 9:43 AM
Indryas Ilyas
Indryas Ilyas - avatar
5 Antworten
+ 2
calc and 2000
22nd Jan 2022, 9:49 AM
Dheeraj Prajapati
+ 2
The answer is calc and 2000
22nd Jun 2022, 9:24 AM
David Dhoye
+ 1
The Answear is calc and 2000
12th May 2020, 1:45 PM
Mizanur Rahman Sajid
Mizanur Rahman Sajid - avatar
+ 1
calc 2000
2nd Nov 2022, 7:20 AM
Tasmia Ishrat Alam Chadni
- 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
27th Nov 2019, 4:09 PM
Ernesto García Xenes
Ernesto García Xenes - avatar