What is a Javascript Closure?

preview_player
Показать описание
Closures are important to understand in javascript because implementing one requires a lot of knowledge about how the javascript language works. In this video I give a short example of building a counter using a javascript closure via a javascript factory function.

------------

Рекомендации по теме
Комментарии
Автор

Succinct explanation, spot on examples. Watched so many videos and they all dumb you down with obscure examples that make matters more complex. Thanks man.

alinazak
Автор

Thanks Cody for this video . This is the Most asked question in the interviews, and this video made the concept clear 💯

Sky-yy
Автор

You are simply amazing man... You will definitely become a great YouTuber for web dev..

seshukothapalli
Автор

Where closures are used practically? Like dealing with login data etc. to obscure the inner functionality of both functions?

raygo