Hi Nico,
JavaScript implements scope slightly different to other languages, I would recommend reading the following to understand scope and closures.
You-Dont-Know-JS/scope & closures at master · getify/You-Dont-Know-JS · GitHub
Jason
Hi Nico,
JavaScript implements scope slightly different to other languages, I would recommend reading the following to understand scope and closures.
You-Dont-Know-JS/scope & closures at master · getify/You-Dont-Know-JS · GitHub
Jason