Add head code to prevent Declare JS Vars bug

This commit is contained in:
Eric Leung
2016-04-06 23:13:25 -07:00
parent 82cc9f99d1
commit 88512026c9

View File

@@ -100,6 +100,14 @@
"Assign the contents of <code>a</code> to variable <code>b</code>." "Assign the contents of <code>a</code> to variable <code>b</code>."
], ],
"releasedOn": "January 1, 2016", "releasedOn": "January 1, 2016",
"head": [
"if (typeof a != 'undefined') {",
" a = undefined;",
"}",
"if (typeof b != 'undefined') {",
" b = undefined;",
"}"
],
"challengeSeed": [ "challengeSeed": [
"// Setup", "// Setup",
"var a;", "var a;",