Created
April 23, 2021 06:58
-
-
Save timsully/b8dd51314505654459ecad33bf0eafed to your computer and use it in GitHub Desktop.
This file contains 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
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