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
Fill in the blank to create a new class that builds on the class Nation. | class AfricanNation ______ Nation { | extends | extends |
Fill in the blank to create a new class that builds on the class Nation | class AfricanNation _____________ { | extends Nation | extendsNation |
Fill in the blank to create a new class, AfricanNation, that builds on the class Nation | ____________ extends Nation { | class AfricanNation | classAfricanNation |
Code the first line to create a new class that builds on another class. Make up the names. | class AfricanNation extends Nation { | class[A-Z][a-zA-Z0-9_$]*extends[A-Z][a-zA-Z0-9_$]*{ | |
Fill in the blank. The parameters are name and language. | class AfricanNation extends Nation { _____________________ super(name, language); } } |
constructor(name, language) { | constructor\(name,language\){ |
Fill in the blank. | class AfricanNation extends Nation { constructor(name, language) { _______________ } } |
super(name, language); | super\(name,language\); |
Fill in the blank. The parameters are name and language. | class AfricanNation extends Nation { _____________________ _________________ } } |
constructor(name, language) { super(name, language); |
constructor\(name,language\){[\r\n]super\(name,language\); |
Create a new class, AfricanNation, that builds on the class Nation. The parameters are name and language. | class AfricanNation extends Nation { constructor(name, language) { super(name, language); } } |
classAfricanNationextendsNation{[\r\n]constructor\(name,language\){[\r\n]super\(name,language\);[\r\n]}[\r\n]} | |
|
|||
|