Can someone please explain the difference between lexical scope and closure? I'm taking the Advanced JavaScript course on PluralSight. The way the instructor explains lexical scope and then closures confuses me.
From my understanding, lexical scope defines how variable names are resolved within nested functions... but isn't this the same as closures since lexical scoping is also involved in closures? Maybe my understanding of closures is incorrect?