Created
August 3, 2018 15:56
-
-
Save adatta02/4887652e25ce197a3bfc9289177f8f46 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const arrayOfStrings2: string[] = []; | |
let charCounter2 = 0; | |
arrayOfStrings2.push('hello'); | |
charCounter2 += 'hello'.length; | |
arrayOfStrings2.push('world'); | |
charCounter2 += 'world'.length; | |
arrayOfStrings2.push('how are'); | |
charCounter2 += 'how are'.length; | |
arrayOfStrings2.push('you'); | |
charCounter2 += 'you'.length; | |
console.log(charCounter2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment