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/13125/head
Samuel Plumppu 2017-02-04 02:44:50 +01:00
parent 15eca159d2
commit 4660d756f2
1 changed files with 5 additions and 2 deletions

View File

@ -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": {}
}
]
}
}