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
An object has properties. The properties have _____. | values | values | |
The first line of an object definition ends with this character: __. | { | { | |
Code the first of several properties defined for an object. The property is color. The value is "blue". Don't forget the comma. | color: "blue", | color:•blue•, | |
Code the first line of an object definition. The object identifier is patient44. | const patient44 = { | constpatient44={ | |
Code the last line of an object definition. | }; | }; | |
Code the first line of an object definition. Make up the object name. | const obj193 = { | [a-z_$][a-zA-Z0-9_$]*={ | |
Code the first and second lines of an object definition with integer properties. Make up the names and the integer value. Follow the variable naming rules for naming the property. The object will have more than one property, so don't forget the comma. | const place = { altitude: 510, |
const[a-z_$][a-zA-Z0-9_$]*={[\r\n][a-z_$][a-zA-Z0-9_$]*:(0|-?[1-9][\d]*), | |
Code a complete object definition. The object has two string properties. Make up the names and values. Follow the variable naming rules for naming the properties. | const student87 = { firstName: "Ella", lastName: "Park" }; |
const[a-z_$][a-zA-Z0-9_$]*={[\r\n][a-z_$][a-zA-Z0-9_$]*:•.*•,[\r\n][a-z_$][a-zA-Z0-9_$]*:•.*•[\r\n]}; | |
|
|||
|