Add head code to prevent Declare JS Vars bug
parent
82cc9f99d1
commit
88512026c9
|
@ -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;",
|
||||
|
|
Loading…
Reference in New Issue