1
2
3
4
5
6
7
8
9
10
To practice on your own, or to check code you believe shouldn't have been scored as incorrect, go to CodePen.
0,1,2,3,4,5,6,7,8,9
0
0
0
0
What is the keyword that you use to declare a variable? | let | ^let$ | |
The following statement is correct only if the variable has already been _______. | userName = "buddy5000"; | declared | ^declared$ |
In a single statement, declare the variable pal and assign the string "Al" to it. | let pal = "Al"; | ^ *letpal=•Al•;$ | |
Declare a variable without assigning it a value. Make up the variable's name. | let username; | ^let.*;$ | |
Assign a string to a variable. Make up the string and the variable. The variable hasn't already been declared. | let username = "bo55"; | ^let.*=•.*•;$ | |
The following statement has already been coded. Assign the variable a new string. Make up the string. | let friend = "Charlie"; | friend = "Bess"; | ^friend=•.*•;*$ |
Declare a variable without assigning it a value. Then, in a second statement, assign it a string. Make up everything. | let x; x = "blue"; |
^let(.*);[\r\n]\1=•.*•;$ | |
In a single statement, declare a variable without assigning it a value. Then assign it a string. Make up the variable and the string. Code an alert, specifying the variable, not the string, as the message. | let name; name = "John"; alert(name); |
let(.*);[\r|\n]\1=•.*•;[\r|\n]alert\(\1\); | |
|
|||
|