Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 = [1, 2, 3, 4, 5];
- console.log(classmates.length); // 5
- // Please write your answer on the line above.
- return howManyStudents;
- }
Advertisement
Add Comment
Please, Sign In to add comment