alerts Flashcards

1
Q

What is the keyword that displays a message box?

A

alert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Type the character that ends every statement.

A

;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

alert”You’re learning JavaScript!”;

A

()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A __________ ends in a semicolon.

A

statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Code an alert that displays the message “Thanks for everything!”

A

alert(“Thanks for everything!”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Code an alert that displays the message “Boo!”

A

alert(“Boo!”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The code displays a box with a message in it. Fill in the blank.
______(“You won!”);

A

alert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The code displays a box with a message in it. Fill in the blank.
alert(“You won!____

A

”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Code an alert that displays the message “Hi”

A

alert(“Hi”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the 5 punctuation characters of an alert statement, in order?

A

(“”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly