Skip to content

Instantly share code, notes, and snippets.

@alexcrist
Created March 2, 2021 17:16
Show Gist options
  • Save alexcrist/e1bde193c346434616458e81b034da55 to your computer and use it in GitHub Desktop.
Save alexcrist/e1bde193c346434616458e81b034da55 to your computer and use it in GitHub Desktop.
let variable = 1;
const str = 'Coding bootcamp';
for (const letter of str) {
console.log(letter);
}
for (let i = 0; i < str.length; i++) {
const letter = str[i];
console.log(letter);
}
let buildableStr = '';
for (let i = 0; i < 5; i++) {
buildableStr += 'a';
}
buildableStr += ' new content';
console.log(buildableStr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment