0
Please what's wrong with my code?
function canIWatch(age) { if (age <= 0) { return "Invalid age."; } else if(age < 6) { return "You are not allowed to watch Deadpool after 6.00pm."; } else if(age < 17) { return "You must be accompanied by a guardian who is 21 or older."; } else if(age < 25) { return "You are allowed to watch Deadpool, right after you show some ID."; } else if(age >= 25) { return "Yay! You can watch Deadpool with no strings attached!"; } else
3 Answers
0
actually, it's JavaScript. made a mistake posting it here but can u help me
0
sorry bud, I don't know JS, only python and Java. Keep working at it, you will figure it out
0
Unfinished else statement and didn't close the function