alerts Flashcards
1
Q
What is the keyword that displays a message box?
A
alert
2
Q
Type the character that ends every statement.
A
;
3
Q
alert”You’re learning JavaScript!”;
A
()
4
Q
A __________ ends in a semicolon.
A
statement
5
Q
Code an alert that displays the message “Thanks for everything!”
A
alert(“Thanks for everything!”);
6
Q
Code an alert that displays the message “Boo!”
A
alert(“Boo!”);
7
Q
The code displays a box with a message in it. Fill in the blank.
______(“You won!”);
A
alert
8
Q
The code displays a box with a message in it. Fill in the blank.
alert(“You won!____
A
”);
9
Q
Code an alert that displays the message “Hi”
A
alert(“Hi”);
10
Q
What are the 5 punctuation characters of an alert statement, in order?
A
(“”);