List of questions
Related questions
Question 57 - Certified JavaScript Developer I discussion
Given the following code:
Counter = 0;
const logCounter = () => {
console.log(counter);
);
logCounter();
setTimeout(logCOunter, 1100);
setInterval(() => {
Counter++
logCounter();
}, 1000);
What is logged by the first four log statements?
A.
0 0 1 2
B.
0 1 2 3
C.
0 1 1 2
D.
0 1 2 2
Your answer:
0 comments
Sorted by
Leave a comment first