JavaScript Programming Tutorial 7 - IIFE, Scope, and Window Object

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

I have watched countless javascript tutorial playlists and I have never been introduced to an IIFE. personally I think the idea of it is awesome. Save some function names, immediately grab some user info to fill in variables that can be used in other functions involved in laying out the website in a more personal manner. Also, I had never been taught the difference between var and let in the way you taught it in the last video. Seeing the var declared variable applied directly to the window (and learning that the window exists) was a huge help for really understanding the power in the difference between let and var. Thanks for the content m8 this is great.

jamesschwartz
Автор

Excellent explanation of IIFE. Concept is clear.

prabhumishra
Автор

Why would I ever want to hide a variable from the window object (e.g. conflict)? How would anyone track or find the variable if it's hidden?

Ricocase
Автор

there's no benefit, function statements and function expressions also do the same regarding variables, so what's the use of an iife?

rchelitk
Автор

so IIFE is it like a constructor in c++?

devadharshinim
Автор

Idk man, this stuff seemed a bit...IIFE to me. jk, this was another wonderful video, as always!

PunmasterSTP