Обсуждения
(Round 6) & (Round 7)😨in Challenges
3 голосов
1 ответfunction can_i_enter(age)
if (age < 6) { document.write ("you are not allowed to watch Dead pool after 6:00pm.");}
else if (age>=6 && age<17) {document.write("you must be accompanied by a guardian who is 21 or older.");}
else if (age>=17 && age<25) {document.write ("you are allowed to watch Dead pool, right after you show some ID. ")}
else if (age>=25) { document.write ("Yah! you can watch Dead pool with no strings attached!");}
else { document.write ("Invalid age. ");}
can_i_enter (24);
0 голосов
9 ответовАктуальное сегодня
Activities on sololearn
6 Votes
Html issue
2 Votes
Can you help me ?
1 Votes
Code coach
1 Votes
What am I doing wring?
1 Votes
Computer architecture
1 Votes
App development 🔥☝️
1 Votes
Playground input
1 Votes