Skip to content

Instantly share code, notes, and snippets.

@cesarkohl
Created January 13, 2020 14:25
Show Gist options
  • Select an option

  • Save cesarkohl/8643ea7fb9c5cd5bf5b33fd7f3c5467c to your computer and use it in GitHub Desktop.

Select an option

Save cesarkohl/8643ea7fb9c5cd5bf5b33fd7f3c5467c to your computer and use it in GitHub Desktop.
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