fix(challenge): Improve seed code for "OOP: Use instanceof"

* Temporarily disable jshint to allow expressions resulting in dead code
* Update constructor declaration for consistency.
This commit is contained in:
Samuel Plumppu
2017-02-04 02:44:50 +01:00
parent 41e00fbf13
commit 5d93771c0a

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>." "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",
"", "",
"", "",
@ -992,4 +995,4 @@
"translations": {} "translations": {}
} }
] ]
} }