I'm going with D) 0 1 2 2. The setInterval call increments Counter and logs the new value, but the last log statement should be 2 since the interval is 1 second and the setTimeout is 1.1 seconds.
I think the answer is B) 0 1 2 3. The code sets the Counter variable to 0, and then the first logCounter() call logs 0. The setTimeout call logs 0 after 1.1 seconds, and the setInterval call increments Counter and logs the new value every 1 second, so the output should be 0 1 2 3.
Kami
3 days agoMichel
12 days agoPura
15 days agoMatthew
16 days agoMichel
24 days ago