У нас вы можете посмотреть бесплатно JS Factory Functions vs CLOSURES - The Confusion STOPS Here! или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
What is a factory? What is a closure? Would you like to see how they compare to each other? Closures have mystified us programmers since the beginning of time… and long may that continue… only joking! Seriously though, why are they so perplexing? Maybe it’s just their nature, or maybe it’s the way people are explaining them to us. In this tutorial we start by looking at what a factory function is (without a closure, but with and without an inner function). We also look at what a closure is, and then compare the difference between a factory and a closure by combining one of each into a single example. 00:00 - Factory function (inner func... but no closure) 04:33 - A bad example of a JavaScript closure 06:54 - Closure which is not a factory function 10:28 - JS Factory combined with JS Closure 13:55 - Factory function vs Class equivalent