Merge pull request #13125 from Greenheart/fix/oop-instanceof
fix(challenge): Improve seed code for "OOP: Use instanceof"
This commit is contained in:
@ -273,9 +273,12 @@
|
|||||||
"Create a new instance of the <code>House</code> constructor, calling it <code>myHouse</code> and passing a number of bedrooms. Then, use <code>instanceof</code> to verify that it is an instance of <code>House</code>."
|
"Create a new instance of the <code>House</code> constructor, calling it <code>myHouse</code> and passing a number of bedrooms. Then, use <code>instanceof</code> to verify that it is an instance of <code>House</code>."
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
"let House = function(numBedrooms) {",
|
"/* jshint expr: true */",
|
||||||
|
"",
|
||||||
|
"function House(numBedrooms) {",
|
||||||
" this.numBedrooms = numBedrooms;",
|
" this.numBedrooms = numBedrooms;",
|
||||||
"}",
|
"}",
|
||||||
|
"",
|
||||||
"// Add your code below this line",
|
"// Add your code below this line",
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
|
Reference in New Issue
Block a user