Merge pull request #7953 from erictleung/fix/declare-js-vars-bug

Add head code to prevent Declare JS Vars bug
This commit is contained in:
Berkeley Martinez
2016-04-14 22:13:50 -07:00

View File

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