// less than 6 years old -> free // 6 to 17 years old -> child discount // 18 to 26 years old -> student discount // 27 to 66 years old -> full price // over 66 years old -> senior citizen discount
// Create a conditional statement (if/else/else if) that logs out the discount // the passenger will get based upon the value of the age variable
1
2
3
4
5
6
7
8
9
10
let age =15
// less than 6 years old -> free
// 6 to 17 years old -> child discount
// 18 to 26 years old -> student discount
// 27 to 66 years old -> full price
// over 66 years old -> senior citizen discount
// Create a conditional statement (if/else/else if) that logs out the discount
// the passenger will get based upon the value of the age variable