From 5d93771c0a5acd64c3bf844742e5f89fabbe8a10 Mon Sep 17 00:00:00 2001 From: Samuel Plumppu Date: Sat, 4 Feb 2017 02:44:50 +0100 Subject: [PATCH] fix(challenge): Improve seed code for "OOP: Use instanceof" * Temporarily disable jshint to allow expressions resulting in dead code * Update constructor declaration for consistency. --- .../object-oriented-programming.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json b/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json index c091f47dd7..f93248b653 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json +++ b/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json @@ -273,9 +273,12 @@ "Create a new instance of the House constructor, calling it myHouse and passing a number of bedrooms. Then, use instanceof to verify that it is an instance of House." ], "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": {} } ] -} \ No newline at end of file +}