Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcjęDyskusje Q&A
Print New line in Js
0 głosów
4 odpowiedzifunction 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 głosów
9 odpowiedziJavascript
0 głosów
3 odpowiedziIs this script correct?
0 głosów
2 odpowiedzidocument.write() vs. print()
0 głosów
1 OdpowiedźJavaScript Question
0 głosów
2 odpowiedziPopularne dzisiaj
Solution
0 Votes
Calculator
0 Votes
How to make animation
0 Votes
Sololearn logo
0 Votes
C? C++? C#? Horses for courses?
0 Votes