Welcome to the Treehouse Community
Looking to learn something new?
james chhun5,932 Points
var scores = [ 76, 79, 85, 87, 89 , 90, 99]; var totalScores = scores. ; .. ? what method do i use?
how do i get the number of items from a array into a new variable?
Kevin Gates14,855 Points
HIDAYATULLAH ARGHANDABI21,017 Points
The question ask you to to store the number of items in the array scores into the variable totalScores. You will use the
length It should be
var totalScores = scores.length ;