For this exercise you may use Repl.it or the Chrome console.
Last active
March 23, 2024 14:12
-
-
Save ross-u/251de9af8e6bd1ad1ec74d644036e253 to your computer and use it in GitHub Desktop.
JS | Asynchronous vs Synchronous
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Task 1 - | |
| // Complete the code below to create a counter that will | |
| // `console.log` a `counter` number in sequence every second using setInterval() | |
| let counter = 1; | |
| function printCounter() { | |
| /* Your code here ... */ | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment