Loading...

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

93,982 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jul 17, 2014

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:
https://www.youtube.com/playlist?list...

-~-~~-~~~-~~-~-
Also watch: "Responsive Design Tutorial - Tips for making web sites look great on any device"
https://www.youtube.com/watch?v=fgOO9...
-~-~~-~~~-~~-~-

Loading...

Advertisement
When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...