Skip to content

Instantly share code, notes, and snippets.

@ross-u
Last active March 23, 2024 14:12
Show Gist options
  • Select an option

  • Save ross-u/251de9af8e6bd1ad1ec74d644036e253 to your computer and use it in GitHub Desktop.

Select an option

Save ross-u/251de9af8e6bd1ad1ec74d644036e253 to your computer and use it in GitHub Desktop.
JS | Asynchronous vs Synchronous

JS | Asynchronous vs Synchronous


Asynchronous Warm Up - Exercise


For this exercise you may use Repl.it or the Chrome console.

// 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