-
-
Save McLarenCollege/757fa438d49d9ec7dd8dc29e064b0199 to your computer and use it in GitHub Desktop.
Exercise Name : Senior Adult
This file contains 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
let age = 10; | |
//Assign a boolean expression to the following variables, such that is has true/false depending on the value of age | |
// senior citizens are aged above 65, children are aged below 18. Adults are aged above or equal to 18. | |
// Here is a gist for reference about how to use the comparsion operator | |
// https://gist.github.com/McLarenCollege/692652232372c64f3d067ce9a407e375 | |
let isSenior = ; // write expression | |
let isAdult = ; // write expression | |
let isChild = ; // write expression | |
console.log(isSenior); | |
console.log(isAdult); | |
console.log(isChild); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment