Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

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

115.4K views on YouTube

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.

Watch the full playlist:

-~-~~-~~~-~~-~-
Also watch: “Responsive Design Tutorial – Tips for making web sites look great on any device”

-~-~~-~~~-~~-~-