Skip to content

Instantly share code, notes, and snippets.

@Spirecool
Created February 23, 2022 09:38
Show Gist options
  • Save Spirecool/899f54329b67245436d50f859590fed6 to your computer and use it in GitHub Desktop.
Save Spirecool/899f54329b67245436d50f859590fed6 to your computer and use it in GitHub Desktop.
// Initialization of variable n to 0
let n = 0
do {
// Display a message in the console with the value n
console.log('n : ' + n)
// Increment n by 1 (n = n + 1)
n++
} while (n < 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment