Skip to content

Instantly share code, notes, and snippets.

@timsully
Created April 23, 2021 06:58
Show Gist options
  • Save timsully/b8dd51314505654459ecad33bf0eafed to your computer and use it in GitHub Desktop.
Save timsully/b8dd51314505654459ecad33bf0eafed to your computer and use it in GitHub Desktop.
let arrayOfStr = ['javascriptman', 'stringy', 'stringer', 'another', 'this',];
for (let i = 0; i < arrayOfStr.length; i++) {
console.log(`whole string: ${arrayOfStr[i]}`);
for (let k = 0; k < arrayOfStr[i].length; k++) {
console.log(`individual character: ${arrayOfStr[i][k]}`);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment