Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Last active April 4, 2022 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/757fa438d49d9ec7dd8dc29e064b0199 to your computer and use it in GitHub Desktop.
Save McLarenCollege/757fa438d49d9ec7dd8dc29e064b0199 to your computer and use it in GitHub Desktop.
Exercise Name : Senior Adult
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