Add head code to prevent Declare JS Vars bug

pull/7953/head
Eric Leung 2016-04-06 23:13:25 -07:00
parent 82cc9f99d1
commit 88512026c9
1 changed files with 8 additions and 0 deletions

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;",