Javascript is Event-Driven - What makes Javascript Weird...and Awesome Pt 2

Javascript is Event-Driven - What makes Javascript Weird...and Awesome Pt 205:16

Javascript is Event-Driven - What makes Javascript Weird...and Awesome Pt 2 videosi uchun yuklab olish ma'lumotlari va tafsilotlari

Muallif:

LearnCode.academy

Chop etilgan sana:

18/07/2014

Ko'rishlar soni:

113K

Tavsif:

This changes EVERYTHING! The fact that Javascript is event-driven is the reason for closures, weird scoping/context, and the myriad of callbacks you see everywhere. Programmers who are new to Javascript—especially Node.js—are often thrown for a loop by the event-driven nature of JS. The bottom line is: Javascript isn't built for making a page, it's built for a user-interface. It listens for user interaction and responds accordingly. And when that response happens, it doesn't run any unnecessary code—just the code to respond to the user.