Last active
July 31, 2020 14:07
-
-
Save seandaniel/38115f0571ffca5b8d16b6b7d2ada2ba to your computer and use it in GitHub Desktop.
How to use the length method
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 favouriteArtists = ['Anderson .Paak', 'Tame Impala', 'Twenty One Pilots']; | |
const totalFavouriteArtists = favouriteArtists.length; | |
console.log(totalFavouriteArtists); | |
// 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment