-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
While this technically works, what if the array were much longer? What if the array changed from time to time? How can the code be changed so that you don't have to manually select each item in the array and print them on 4 separate lines?
Danny-Hua-WebFun9-2017/Student and Instructors/students.html
Lines 19 to 26 in 2eda55e
| var x = firstLast(students[0]); | |
| var y = firstLast(students[1]); | |
| var a = firstLast(students[2]); | |
| var b = firstLast(students[3]); | |
| console.log(x); | |
| console.log(y); | |
| console.log(a); | |
| console.log(b); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels