Professional Documents
Culture Documents
082 Note 04 For Solution
082 Note 04 For Solution
if (age < 0) {
console.log("Come back once you're out of the womb");
}
// If age is 21
if (age === 21) {
console.log("Happy 21st Birthday!");
}
// If age is odd
//(not evenly divisible by two)
if (age % 2 !== 0) {
console.log("Your age is odd!");
}