SlideShare a Scribd company logo
Como o Javascript Funciona - TDC Floripa
Vinicius Kiatkoski Neves (@viniciuskneves)
●
●
●
jobqueue
asynchronous
callback eventloop
singlethreaded
nonblocking
concurrency
Memory Heap Call Stack
1 2 3
1 2 3
1 2 3
“objeto 1”
“objeto 2”
{ valor: ‘TDC Floripa’ }
obj1
{ valor: ‘TDC Floripa’ }
obj1 obj2
{ valor: ‘TDC Floripa’ }
obj1 obj2
‘Hello’
{ valor: ‘TDC Floripa’ }
obj1 obj2
‘Hello’ World’
{ valor: ‘TDC Floripa’ }
obj1 obj2
‘Hello’ ‘Hello’
sempre
*
obj1
*
obj2
*
obj1
*
obj2
*
obj1
*
obj2
*
obj1
*
obj2
TDC Floripa
Como o Javascript Funciona - TDC Floripa
●
●
● Closures
mais informações →
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
Como o Javascript Funciona - TDC Floripa
mais informações →
O que vimos até agora não parece explicar o
funcionamento do Javascript no browser/Node
Memory Heap + Call Stack
Gerenciamento
Browser/Node
Javascript Engine APIs
Queues
Event Loop
Como o Javascript Funciona - TDC Floripa
Call Stack
Call Stack
Call Stack
Call Stack
Call Stack APIs
Call Stack APIs
Call Stack APIs
Call Stack APIs
Call Stack APIs
Queues
Call Stack
Queues
Call Stack
Queues
Event Loop
Call Stack
Queues
Event Loop
Call Stack
Call Stack
Call Stack
Queues
Event Loop
APIs
“
código síncrono
Como o Javascript Funciona - TDC Floripa
Call Stack
Event Loop
APIs
Queues
Event Loop
Call Stack APIs
Queues
Queues
Event Loop
Call Stack APIs
Queues
Event Loop
Call Stack APIs
Queues
Event Loop
Call Stack APIs
Como o Javascript Funciona - TDC Floripa
Queues
Callback Queue
Job Queue
mais informações →
mais informações →
Job QueueCall Stack
Job QueueCall Stack
Job QueueCall Stack
Job QueueCall Stack
Job QueueCall Stack
Job QueueCall Stack
Job QueueCall Stack
Job QueueCall Stack
Job QueueCall Stack 3
Job QueueCall Stack 3
Event Loop
Job QueueCall Stack 3
Event Loop
Job QueueCall Stack 3
Job QueueCall Stack 3
2
Job QueueCall Stack 3
2
Event Loop
Job QueueCall Stack 3
2
Event Loop
Job QueueCall Stack 3
2
Job QueueCall Stack 3
2
1
mais informações →
Javascript Engine
APIs
Callback queue
Event Loop
Job queue
mais informações →
Vinicius Kiatkoski Neves
kneves.vinicius@gmail.com

More Related Content

PDF
PDF
Node.js Stream API
PDF
Implementing JMS Integration Solutions with WSO2 ESB
PDF
Understanding the Node.js Platform
PPTX
JavaScript on the Desktop
PDF
Brig:Node.js + QML 華麗大冒險
PPTX
Future of NodeJS
PDF
(C)NodeJS
Node.js Stream API
Implementing JMS Integration Solutions with WSO2 ESB
Understanding the Node.js Platform
JavaScript on the Desktop
Brig:Node.js + QML 華麗大冒險
Future of NodeJS
(C)NodeJS

What's hot (20)

PDF
Let s Enjoy Node.js
PPTX
Util.promisify
PDF
デブサミ 2019 【祝】k8sデビュー!エンタープライズ巨大アプリをマイクロサービスコンテナ化
PPTX
JS Fest 2019/Autumn. Виталий Кухар. Сравнение кластеризации HTTP, TCP и UDP н...
PDF
JS Fest 2019: Comparing Node.js processes and threads for clustering HTTP, TC...
ODP
Load Balancer Linux with LVS - Rizki Nanda Agam
PDF
Nodejs presentation
PDF
"The little big project. From zero to hero in two weeks with 3 front-end engi...
PDF
Fundamental of Node.JS - Internship Presentation - Week7
PDF
Node.js Explained
PDF
Node.js
PDF
T.Pollak y C.Yaconi - Prey
PDF
WebSockets, Unity3D, and Clojure
PDF
Eduardo Silva - monkey http-server everywhere
PDF
Pragmatic Functional Programming in the JS land with Clojurescript and Om
PDF
Ruby on Docker
PPTX
How to persist data with Redis
ODP
Nagios Conference 2012 - Yancy Ribbens - Windows Advanced Monitoring with WMI...
PDF
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
PPT
Владимир Мигуро "Дао Node.js"
Let s Enjoy Node.js
Util.promisify
デブサミ 2019 【祝】k8sデビュー!エンタープライズ巨大アプリをマイクロサービスコンテナ化
JS Fest 2019/Autumn. Виталий Кухар. Сравнение кластеризации HTTP, TCP и UDP н...
JS Fest 2019: Comparing Node.js processes and threads for clustering HTTP, TC...
Load Balancer Linux with LVS - Rizki Nanda Agam
Nodejs presentation
"The little big project. From zero to hero in two weeks with 3 front-end engi...
Fundamental of Node.JS - Internship Presentation - Week7
Node.js Explained
Node.js
T.Pollak y C.Yaconi - Prey
WebSockets, Unity3D, and Clojure
Eduardo Silva - monkey http-server everywhere
Pragmatic Functional Programming in the JS land with Clojurescript and Om
Ruby on Docker
How to persist data with Redis
Nagios Conference 2012 - Yancy Ribbens - Windows Advanced Monitoring with WMI...
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Владимир Мигуро "Дао Node.js"
Ad

Similar to Como o Javascript Funciona - TDC Floripa (18)

PPT
Web development basics (Part-5)
PDF
Background processes and tasks in an async world
PPTX
The JavaScript Event Loop - Concurrency in the Language of the Web
PPTX
JavaScript Multithread or Single Thread.pptx
PDF
Frontend Track NodeJS
PDF
"Node.js vs workers — A comparison of two JavaScript runtimes", James M Snell
PPT
NodeJS.ppt
PPT
NodeJS.ppt
PPT
NodeJS.ppt
PPT
NodeJS introduction and examples of event loops
PPTX
How NOT to write in Node.js
PPT
Node js
PPTX
Node Architecture.pptx
PDF
Javascript under the hood
PDF
Asynchronous programming done right - Node.js
PDF
An opinionated intro to Node.js - devrupt hospitality hackathon
PDF
Node js internal
Web development basics (Part-5)
Background processes and tasks in an async world
The JavaScript Event Loop - Concurrency in the Language of the Web
JavaScript Multithread or Single Thread.pptx
Frontend Track NodeJS
"Node.js vs workers — A comparison of two JavaScript runtimes", James M Snell
NodeJS.ppt
NodeJS.ppt
NodeJS.ppt
NodeJS introduction and examples of event loops
How NOT to write in Node.js
Node js
Node Architecture.pptx
Javascript under the hood
Asynchronous programming done right - Node.js
An opinionated intro to Node.js - devrupt hospitality hackathon
Node js internal
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Machine Learning_overview_presentation.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Review of recent advances in non-invasive hemoglobin estimation
Advanced methodologies resolving dimensionality complications for autism neur...
Assigned Numbers - 2025 - Bluetooth® Document
Per capita expenditure prediction using model stacking based on satellite ima...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Network Security Unit 5.pdf for BCA BBA.
Machine Learning_overview_presentation.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
MIND Revenue Release Quarter 2 2025 Press Release
Chapter 3 Spatial Domain Image Processing.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A Presentation on Artificial Intelligence
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation theory and applications.pdf
Machine learning based COVID-19 study performance prediction
The Rise and Fall of 3GPP – Time for a Sabbatical?
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Como o Javascript Funciona - TDC Floripa