Master the JavaScript Interview: What is a Closure?
Eric Elliott
3.2K45

Your example code is poorly written. Use vanilla JS with readable vars, no shorthand code and why are you importing react libs to demonstrate closures?

Otherwise the explanations are good.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.