0% found this document useful (0 votes)
56 views3 pages

1 Asynchronous Javascript Reasoning m1 Slides

This document provides an overview of reasoning about asynchronous JavaScript and includes links to interactive examples that demonstrate concepts like the event loop, callbacks, cooperative concurrency, and avoiding blocking. It addresses questions around how and when JavaScript code executes, handling parallel requests, potential race conditions, and why callbacks can be confusing in a single-threaded environment.

Uploaded by

Darko Paunovic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views3 pages

1 Asynchronous Javascript Reasoning m1 Slides

This document provides an overview of reasoning about asynchronous JavaScript and includes links to interactive examples that demonstrate concepts like the event loop, callbacks, cooperative concurrency, and avoiding blocking. It addresses questions around how and when JavaScript code executes, handling parallel requests, potential race conditions, and why callbacks can be confusing in a single-threaded environment.

Uploaded by

Darko Paunovic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Reasoning About Asynchronous

JavaScript
OVERVIEW

Wes Higbee

@g0t4 www.weshigbee.com
Multithreaded mentality?
How/when code is executed?
Parallel requests?
Questions Lock up browser?
Race conditions?
Single-threaded?
Callbacks confusing?
Event Loop, Run To Completion,
Cooperative Concurrency, Non-Blocking
I/O
Links

Weather Timer measure


http://plnkr.co/edit/ZOAaSdtnfvR6Wwi http://plnkr.co/edit/kPOgzEuIvUmN4o6
uVZ6s Jenem
Avoid Blocking – Red Background Progress Number Crunching - Web
http://plnkr.co/edit/z29VyH5BPvC4oc4 Worker
0EyOu https://plnkr.co/edit/Yy7BOZU9sIa8Eyr
xJwGH
setTimeout Pyramid Challenge
http://plnkr.co/edit/DGiHFQOQfnipCcp Event Listeners Are Synchronous
ex2RH http://plnkr.co/edit/mDvSHpF3HcTjtvlt
GmQn
Drag and Drop Red Box
http://plnkr.co/edit/SmSpPS5ZgPvkgn8
RE6y1
Timer onReady
http://plnkr.co/edit/gafgKCrxnDIJ6YaG
9Jpx

You might also like