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:
@ -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;",
|
||||||
|
Reference in New Issue
Block a user