fix(challenge): Improve seed code for "OOP: Use instanceof"
* Temporarily disable jshint to allow expressions resulting in dead code * Update constructor declaration for consistency.pull/18182/head
parent
41e00fbf13
commit
5d93771c0a
|
@ -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>."
|
||||
],
|
||||
"challengeSeed": [
|
||||
"let House = function(numBedrooms) {",
|
||||
"/* jshint expr: true */",
|
||||
"",
|
||||
"function House(numBedrooms) {",
|
||||
" this.numBedrooms = numBedrooms;",
|
||||
"}",
|
||||
"",
|
||||
"// Add your code below this line",
|
||||
"",
|
||||
"",
|
||||
|
@ -992,4 +995,4 @@
|
|||
"translations": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue