SlideShare uma empresa Scribd logo
Como funciona esse trem?
Eu só sei que escreve console.log aparece um texto lá no console...
JAVASCRIPT
@lalizita
lalizita
laislima98
laislima98@hotmail.com
Laís Lima, 20 anos
Front End Developer @ Cosmobots
@onerdzao / @womakersgram
Por que devemos saber como o
javascript funciona?
● E fundamental que você conheça
● facilitar debug
● ficar craque para as entrevistas
Vamos conhecer o Javascript mais a fundo...
Javascript gostaria
de sair comigo?

Recomendado para você

12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS

The document discusses various indexing techniques used to improve data access performance in databases, including ordered indices like B-trees and B+-trees, as well as hashing techniques. It covers the basic concepts, data structures, operations, advantages and disadvantages of each approach. B-trees and B+-trees store index entries in sorted order to support range queries efficiently, while hashing distributes entries uniformly across buckets using a hash function but does not support ranges.

Asp.net file types
Asp.net file typesAsp.net file types
Asp.net file types

This document discusses various file types managed by ASP.NET and the application bin directory. It describes file types like .asax, .aspx, .config, .mdb, .mdf, .resources, .browser, and .sln that are used by ASP.NET. It also covers file types like .asa and .asp that are managed by IIS. Static file types like .css, .htm, and .html are mentioned. The document concludes by noting that components stored in the application/bin directory do not need registration and can be replaced without restarting the web server.

asp.net file types
Análise essencial
Análise essencialAnálise essencial
Análise essencial

“A análise essencial deve começar com o entendimento daquilo que o usuário está solicitando. Este entendimento no primeiro momento, refere-se apenas ao tracejamento dos limites fronteiriços do sistema.”

desenvolvedoressencialsistemas
Vamos descobrir suas habilidades mais obscuras,
ganhar intimidade, conquistá-lo e dominá-lo!
Fala pro Javascript que
é hoje!
Javascript engine
Spider Monkey
https://developer.mozilla.org/en-
US/docs/Mozilla/Projects/SpiderMonkey
https://v8.dev/
Global Execution Context
Toda vez que a Engine lê o seu código Global Execution Context é criado
Global Memory
Global Memory também é criada toda vez que a engine lê o seu código

Recomendado para você

Overview of oss(open source software library) and its pros and cons
Overview of oss(open source software library) and its pros and consOverview of oss(open source software library) and its pros and cons
Overview of oss(open source software library) and its pros and cons

This document discusses the pros and cons of using open source software in libraries. It begins with an introduction to open source software and licenses. Popular open source software used in libraries are then outlined, including integrated library management systems (ILMS) like Koha and Evergreen, digital library software like DSpace and Greenstone, content management systems like Drupal and Joomla, and learning management systems like Moodle. The benefits of open source software for libraries are lower costs, easier licensing, better quality control through community involvement, customizability, and ample support resources. Potential drawbacks include less personal support, lack of training and expertise, need for technical skills to maintain the software, and lack of scalability in some cases. The

Advanced Database System
Advanced Database SystemAdvanced Database System
Advanced Database System

Here you can gain knowledge from traditional database system to advanced database system and also know about that new features of database.

databasedatabase systemnew features of database system
Object oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptObject oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle ppt

The document discusses various aspects of object-oriented systems development including the software development life cycle, use case driven analysis and design, prototyping, and component-based development. The key points are: 1) Object-oriented analysis involves identifying user requirements through use cases and actor analysis to determine system classes and their relationships. Use case driven analysis is iterative. 2) Object-oriented design further develops the classes identified in analysis and defines additional classes, attributes, methods, and relationships to support implementation. Design is also iterative. 3) Prototyping key system components early allows understanding how features will be implemented and getting user feedback to refine requirements. 4) Component-based development exploits prefabric

Global
Execution
Context
Global
Memory
Javascript Engine
On progress...
Como a engine lê seu código
// Legal, temos uma constante, vamos armazenar na Global Memory
let tentativas = 0;
// olha só uma função, vamos armazenar ela na Global memory também *-* ownt
function chegarNele(resposta){
if(!resposta) return tentativa++;
return alert(“É HOJE BICHO!”);
}
// Pronto terminei!
Global
Execution
Context
Global
Memory
Javascript Engine
On progress...
chegarNele:function
tentativas: 0
chegaNele();

Recomendado para você

File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System

Contents: 1.File Concepts 2.File Types 3.File Operations 4.Access Methods 5.Directory Structure 6.File System Structure

DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM

A database management system (DBMS) is a collection of programs that enables users to create and maintain databases and control all access to them. The primary goal of a DBMS is to provide an environment that is both convenient and efficient for users to retrieve and store information.

database management systemdbmscollection of program
Promoting Electronic Thesis and Dissertation through Knowledge repository
Promoting  Electronic Thesis and Dissertation through  Knowledge repository   Promoting  Electronic Thesis and Dissertation through  Knowledge repository
Promoting Electronic Thesis and Dissertation through Knowledge repository

The document discusses promoting electronic thesis and dissertation (ETD) through knowledge repositories. It defines an ETD and knowledge repository, outlining their benefits such as improved accessibility and increased citation. International ETD initiatives are described, along with Botho University's current status in establishing an ETD repository. Botho University's repository allows access to postgraduate theses and dissertations to facilitate research knowledge sharing while addressing copyright and other concerns.

CALL STACK HELP!
Push coloca na stack
Pop remove da stack
Global
Execution
Context
Global
Memory
Javascript Engine
Call Stack
chegarNele():
-Local Execution
Context
-Local Memory
main()
chegaNele()
chegaNele:
Executando...
DEMOOOOOOOOO
**Js Hacks para você usar no trampo**
● extração dos parâmetros na função
● usar length para esvaziar um array
● checar se objeto está vazio ou nao Object.keys
● valores default ||
● usar !! para converter para boolean
● + operator para converter string para números
● logica com &&

Recomendado para você

Fundamental Category
 Fundamental Category Fundamental Category
Fundamental Category

Ranganathan introduced the concept of fundamental categories in library classification. There are five fundamental categories: Personality, Matter, Energy, Space, and Time. These categories are used to group concepts and determine the order of facets in compound subject classifications. Personality indicates who, Matter indicates what, Energy indicates how, Space indicates where, and Time indicates when. The categories are ordered from most concrete to least concrete as Personality, Matter, Energy, Space, Time. This sequence forms the basis of Colon Classification and provides a framework for systematically organizing information.

System Modelling
System ModellingSystem Modelling
System Modelling

This document provides an overview of system modeling. It discusses that system modeling involves developing abstract models of a system from different perspectives, and is commonly done using the Unified Modeling Language (UML). It also describes various UML diagram types used in system modeling like use case diagrams, class diagrams, and state diagrams. Finally, it gives examples of modeling different views of a mental health case management system, including contextual models, interaction models, structural models, and behavioral models.

cpsc430
Active database system
Active database systemActive database system
Active database system

This document discusses active database management systems. It defines active databases as database systems that can automatically respond to events inside or outside the system through the use of event-condition-action rules. These rules allow the database to monitor and react to specific events. The document outlines the key components of an active database architecture, including a knowledge model and execution model. It also discusses features, applications, strengths and weaknesses of active databases.

databasecomputerdata
Fontes
https://www.valentinog.com/blog/js-execution-context-call-stack/
https://www.youtube.com/watch?v=W8AeMrVtFLY
https://corpocrat.com/2018/04/25/20-simple-wow-hacks-in-javascript/
https://medium.com/@rahul.raviprasad/the-little-known-bitwise-operations-and-their-performance-
in-javascript-c281d512c757
@lalizita
lalizita
laislima98
laislima98@hotmail.com
@onerdzao / @womakersgram
Laís Lima, 20 anos
Front End Developer @ Cosmobots

Mais conteúdo relacionado

Mais procurados

UNIT 3- DATABASE INTEGRITY AND SECURITY CONCEPTS (1).pdf
UNIT 3- DATABASE INTEGRITY AND SECURITY CONCEPTS (1).pdfUNIT 3- DATABASE INTEGRITY AND SECURITY CONCEPTS (1).pdf
UNIT 3- DATABASE INTEGRITY AND SECURITY CONCEPTS (1).pdf
KavitaShinde26
 
Ever Green, a library automation software.
Ever Green, a library automation software.Ever Green, a library automation software.
Ever Green, a library automation software.
University of Dhaka, Dhaka, Bangladesh
 
DBMS Bascis
DBMS BascisDBMS Bascis
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
koolkampus
 
Asp.net file types
Asp.net file typesAsp.net file types
Asp.net file types
Siddhesh Palkar
 
Análise essencial
Análise essencialAnálise essencial
Análise essencial
Tiago Serra
 
Overview of oss(open source software library) and its pros and cons
Overview of oss(open source software library) and its pros and consOverview of oss(open source software library) and its pros and cons
Overview of oss(open source software library) and its pros and cons
Yuga Priya Satheesh
 
Advanced Database System
Advanced Database SystemAdvanced Database System
Advanced Database System
sushmita rathour
 
Object oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptObject oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle ppt
Kunal Kishor Nirala
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
Janki Shah
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
Mahmud Hasan Tanvir
 
Promoting Electronic Thesis and Dissertation through Knowledge repository
Promoting  Electronic Thesis and Dissertation through  Knowledge repository   Promoting  Electronic Thesis and Dissertation through  Knowledge repository
Promoting Electronic Thesis and Dissertation through Knowledge repository
marykelem
 
Fundamental Category
 Fundamental Category Fundamental Category
Fundamental Category
Shuvra Ghosh
 
System Modelling
System ModellingSystem Modelling
System Modelling
Jennifer Polack
 
Active database system
Active database systemActive database system
Active database system
Adeolu Olaniyan
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
Naresh Kumar
 
Google File System
Google File SystemGoogle File System
Google File System
Junyoung Jung
 
data modeling and models
data modeling and modelsdata modeling and models
data modeling and models
sabah N
 
Slide 3 data abstraction & 3 schema
Slide 3 data abstraction & 3 schemaSlide 3 data abstraction & 3 schema
Slide 3 data abstraction & 3 schema
Visakh V
 
Library management system
Library management systemLibrary management system
Library management system
Imdad Ul Haq
 

Mais procurados (20)

UNIT 3- DATABASE INTEGRITY AND SECURITY CONCEPTS (1).pdf
UNIT 3- DATABASE INTEGRITY AND SECURITY CONCEPTS (1).pdfUNIT 3- DATABASE INTEGRITY AND SECURITY CONCEPTS (1).pdf
UNIT 3- DATABASE INTEGRITY AND SECURITY CONCEPTS (1).pdf
 
Ever Green, a library automation software.
Ever Green, a library automation software.Ever Green, a library automation software.
Ever Green, a library automation software.
 
DBMS Bascis
DBMS BascisDBMS Bascis
DBMS Bascis
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
 
Asp.net file types
Asp.net file typesAsp.net file types
Asp.net file types
 
Análise essencial
Análise essencialAnálise essencial
Análise essencial
 
Overview of oss(open source software library) and its pros and cons
Overview of oss(open source software library) and its pros and consOverview of oss(open source software library) and its pros and cons
Overview of oss(open source software library) and its pros and cons
 
Advanced Database System
Advanced Database SystemAdvanced Database System
Advanced Database System
 
Object oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptObject oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle ppt
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
 
Promoting Electronic Thesis and Dissertation through Knowledge repository
Promoting  Electronic Thesis and Dissertation through  Knowledge repository   Promoting  Electronic Thesis and Dissertation through  Knowledge repository
Promoting Electronic Thesis and Dissertation through Knowledge repository
 
Fundamental Category
 Fundamental Category Fundamental Category
Fundamental Category
 
System Modelling
System ModellingSystem Modelling
System Modelling
 
Active database system
Active database systemActive database system
Active database system
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Google File System
Google File SystemGoogle File System
Google File System
 
data modeling and models
data modeling and modelsdata modeling and models
data modeling and models
 
Slide 3 data abstraction & 3 schema
Slide 3 data abstraction & 3 schemaSlide 3 data abstraction & 3 schema
Slide 3 data abstraction & 3 schema
 
Library management system
Library management systemLibrary management system
Library management system
 

Semelhante a Javascript por debaixo dos panos

Javascript por debaixo dos panos
Javascript por debaixo dos panosJavascript por debaixo dos panos
Javascript por debaixo dos panos
Laís Lima
 
Minicurso Ajax - 5. Semana de Informática PUC Minas São Gabriel
Minicurso Ajax - 5. Semana de Informática PUC Minas São GabrielMinicurso Ajax - 5. Semana de Informática PUC Minas São Gabriel
Minicurso Ajax - 5. Semana de Informática PUC Minas São Gabriel
Marcelo Linhares
 
Java e orientação a objetos
Java e orientação a objetosJava e orientação a objetos
Java e orientação a objetos
Frederico Maia Arantes
 
JS Experience 2017 - Utilizando a virtualização para simplificar o desenvolvi...
JS Experience 2017 - Utilizando a virtualização para simplificar o desenvolvi...JS Experience 2017 - Utilizando a virtualização para simplificar o desenvolvi...
JS Experience 2017 - Utilizando a virtualização para simplificar o desenvolvi...
iMasters
 
T03_LM3: Javascript (2013-2014)
T03_LM3: Javascript (2013-2014)T03_LM3: Javascript (2013-2014)
T03_LM3: Javascript (2013-2014)
Carlos Santos
 
JavaScript Moderno
JavaScript ModernoJavaScript Moderno
JavaScript Moderno
Josino Rodrigues
 
Vivendo de hacking
Vivendo de hackingVivendo de hacking
Vivendo de hacking
Antonio Costa aka Cooler_
 
DOMinando JavaScript
DOMinando JavaScriptDOMinando JavaScript
DOMinando JavaScript
Thiago Poiani
 
Apresentação - Uniararas - JEE e Desenvolvimento Ágil
Apresentação - Uniararas - JEE e Desenvolvimento ÁgilApresentação - Uniararas - JEE e Desenvolvimento Ágil
Apresentação - Uniararas - JEE e Desenvolvimento Ágil
Marcio Garcia
 
Plataforma java: detalhes da JVM
Plataforma java: detalhes da JVMPlataforma java: detalhes da JVM
Plataforma java: detalhes da JVM
Caelum
 
Workflow WordPress + JavaScript - WordCamp Rio
Workflow WordPress + JavaScript  - WordCamp RioWorkflow WordPress + JavaScript  - WordCamp Rio
Workflow WordPress + JavaScript - WordCamp Rio
Fellyph Cintra
 
Xss
XssXss
Coisas que eu gostaria de saber antes de começar a desenvolver temas e plugin...
Coisas que eu gostaria de saber antes de começar a desenvolver temas e plugin...Coisas que eu gostaria de saber antes de começar a desenvolver temas e plugin...
Coisas que eu gostaria de saber antes de começar a desenvolver temas e plugin...
wordcamppoa
 
Criando Webservice REST com NodeJS, NoSQL & Docker
Criando Webservice REST com NodeJS, NoSQL & DockerCriando Webservice REST com NodeJS, NoSQL & Docker
Criando Webservice REST com NodeJS, NoSQL & Docker
Giovanni Kenji Shiroma
 
burlando um WAF
burlando um WAFburlando um WAF
burlando um WAF
Antonio Costa aka Cooler_
 
SEO para Front-End - BeagaJS
SEO para Front-End - BeagaJSSEO para Front-End - BeagaJS
SEO para Front-End - BeagaJS
Fabio Ricotta
 
Hangout Tempo Real Eventos - Nodejs - Os Primeiros Passos
Hangout  Tempo Real Eventos - Nodejs - Os Primeiros PassosHangout  Tempo Real Eventos - Nodejs - Os Primeiros Passos
Hangout Tempo Real Eventos - Nodejs - Os Primeiros Passos
Jackson F. de A. Mafra
 
PHP Jedi - Boas Práticas e Alta Performance
PHP Jedi - Boas Práticas e Alta PerformancePHP Jedi - Boas Práticas e Alta Performance
PHP Jedi - Boas Práticas e Alta Performance
Felipe Ribeiro
 
Phpjedi 090307090434-phpapp01 2
Phpjedi 090307090434-phpapp01 2Phpjedi 090307090434-phpapp01 2
Phpjedi 090307090434-phpapp01 2
PrinceGuru MS
 
Preparando seu e-commerce para a Black Friday
Preparando seu e-commerce para a Black FridayPreparando seu e-commerce para a Black Friday
Preparando seu e-commerce para a Black Friday
Umbler
 

Semelhante a Javascript por debaixo dos panos (20)

Javascript por debaixo dos panos
Javascript por debaixo dos panosJavascript por debaixo dos panos
Javascript por debaixo dos panos
 
Minicurso Ajax - 5. Semana de Informática PUC Minas São Gabriel
Minicurso Ajax - 5. Semana de Informática PUC Minas São GabrielMinicurso Ajax - 5. Semana de Informática PUC Minas São Gabriel
Minicurso Ajax - 5. Semana de Informática PUC Minas São Gabriel
 
Java e orientação a objetos
Java e orientação a objetosJava e orientação a objetos
Java e orientação a objetos
 
JS Experience 2017 - Utilizando a virtualização para simplificar o desenvolvi...
JS Experience 2017 - Utilizando a virtualização para simplificar o desenvolvi...JS Experience 2017 - Utilizando a virtualização para simplificar o desenvolvi...
JS Experience 2017 - Utilizando a virtualização para simplificar o desenvolvi...
 
T03_LM3: Javascript (2013-2014)
T03_LM3: Javascript (2013-2014)T03_LM3: Javascript (2013-2014)
T03_LM3: Javascript (2013-2014)
 
JavaScript Moderno
JavaScript ModernoJavaScript Moderno
JavaScript Moderno
 
Vivendo de hacking
Vivendo de hackingVivendo de hacking
Vivendo de hacking
 
DOMinando JavaScript
DOMinando JavaScriptDOMinando JavaScript
DOMinando JavaScript
 
Apresentação - Uniararas - JEE e Desenvolvimento Ágil
Apresentação - Uniararas - JEE e Desenvolvimento ÁgilApresentação - Uniararas - JEE e Desenvolvimento Ágil
Apresentação - Uniararas - JEE e Desenvolvimento Ágil
 
Plataforma java: detalhes da JVM
Plataforma java: detalhes da JVMPlataforma java: detalhes da JVM
Plataforma java: detalhes da JVM
 
Workflow WordPress + JavaScript - WordCamp Rio
Workflow WordPress + JavaScript  - WordCamp RioWorkflow WordPress + JavaScript  - WordCamp Rio
Workflow WordPress + JavaScript - WordCamp Rio
 
Xss
XssXss
Xss
 
Coisas que eu gostaria de saber antes de começar a desenvolver temas e plugin...
Coisas que eu gostaria de saber antes de começar a desenvolver temas e plugin...Coisas que eu gostaria de saber antes de começar a desenvolver temas e plugin...
Coisas que eu gostaria de saber antes de começar a desenvolver temas e plugin...
 
Criando Webservice REST com NodeJS, NoSQL & Docker
Criando Webservice REST com NodeJS, NoSQL & DockerCriando Webservice REST com NodeJS, NoSQL & Docker
Criando Webservice REST com NodeJS, NoSQL & Docker
 
burlando um WAF
burlando um WAFburlando um WAF
burlando um WAF
 
SEO para Front-End - BeagaJS
SEO para Front-End - BeagaJSSEO para Front-End - BeagaJS
SEO para Front-End - BeagaJS
 
Hangout Tempo Real Eventos - Nodejs - Os Primeiros Passos
Hangout  Tempo Real Eventos - Nodejs - Os Primeiros PassosHangout  Tempo Real Eventos - Nodejs - Os Primeiros Passos
Hangout Tempo Real Eventos - Nodejs - Os Primeiros Passos
 
PHP Jedi - Boas Práticas e Alta Performance
PHP Jedi - Boas Práticas e Alta PerformancePHP Jedi - Boas Práticas e Alta Performance
PHP Jedi - Boas Práticas e Alta Performance
 
Phpjedi 090307090434-phpapp01 2
Phpjedi 090307090434-phpapp01 2Phpjedi 090307090434-phpapp01 2
Phpjedi 090307090434-phpapp01 2
 
Preparando seu e-commerce para a Black Friday
Preparando seu e-commerce para a Black FridayPreparando seu e-commerce para a Black Friday
Preparando seu e-commerce para a Black Friday
 

Javascript por debaixo dos panos