JS Assignment 10: Array Properties and Methods
skudeva (18)

Hi everyone,

I am completely lost! I can't figure out exercise 1.


function exerciseOne(classmates){
// Exercise One: You will be given an array called 'classmates'
// Create a variable called 'howManyStudents', and assign it to
// the length of the classmates array (using the length property)

var howManyStudents=(classmates);

You are viewing a single comment. View All
Answered by heyitsmarcus (287) [earned 5 cycles]
View Answer
mthotchkiss18 (0)

thank you this helped me also I have been stuck on that one had a long dramatic solution lol was wrong thank you this help out tons now it makes sense to me

janetsomehow1 (2)

@mthotchkiss18 this helped too but in another exercise I have tried adding number to an array but it doesnt seem to work

Kevinw980 (0)

@janetsomehow1 I'm having the same issue on that question, if you've found out the answer please let me know!

MIAlien (0)

@Kevinw980 You have to remove ' '
Numbers do not need this. That is used for letters only. I got the answer correct. Let me know.