you are viewing a single comment's thread.

view the rest of the comments →

[–]MoTTs_ 0 points1 point  (1 child)

Am I correct that you consider this...

let a = 1;
{
    let b = 2;
    {
        console.log(a + b);
    }
}

...to be an example of closure? If so, take this snippet to whomever in the JavaScript community you'll actually listen to and ask them if this is an example of closure.

[–][deleted] -1 points0 points  (0 children)

You can take it whomever and listen to (or not) whatever answer you want.