Created
January 13, 2020 14:25
-
-
Save cesarkohl/8643ea7fb9c5cd5bf5b33fd7f3c5467c to your computer and use it in GitHub Desktop.
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
| var students = [ | |
| {name: 'adam', age: 18}, | |
| {name: 'brian', age: 20}, | |
| {name: 'charles', age: 24} | |
| ]; | |
| var allLarestStudents = true; | |
| for (var i = 0; i <students.length; i ++) { | |
| if (students [i] age <18) { | |
| allLarestStudents = false; | |
| break; | |
| } | |
| } | |
| console.log (allBiggest Students); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment