From 88512026c90c172856410894cb7095e73e8a2b7a Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Wed, 6 Apr 2016 23:13:25 -0700 Subject: [PATCH] Add head code to prevent Declare JS Vars bug --- .../basic-javascript.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 5193d537dcb..0ee5f1fab9c 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -100,6 +100,14 @@ "Assign the contents of a to variable b." ], "releasedOn": "January 1, 2016", + "head": [ + "if (typeof a != 'undefined') {", + " a = undefined;", + "}", + "if (typeof b != 'undefined') {", + " b = undefined;", + "}" + ], "challengeSeed": [ "// Setup", "var a;",