SlideShare a Scribd company logo
CODE CREW | INTRO TO JAVASCRIPT 
INTRO TO 
JAVASCRIPT 
Jamal O’Garro 
Code Crew 
Software Engineer + Instructor
CODE CREW | INTRO TO JAVASCRIPT 
JAVASCRIPT 
• Is a programming language 
• Created by Netscape 
• Runs in browser & server 
• Java is not JavaScript! 
• Is actually named 
ECMAScript
CODE CREW | INTRO TO JAVASCRIPT 
WHAT DOES JAVASCRIPT LOOK LIKE?
CODE CREW | INTRO TO JAVASCRIPT 
DATA TYPES
CODE CREW | INTRO TO JAVASCRIPT 
LOGICAL OPERATORS
CODE CREW | INTRO TO JAVASCRIPT 
VARIABLES
CODE CREW | INTRO TO JAVASCRIPT 
UNDEFINED vs. NULL 
• Both represent absence of a value 
• If a variable has not been initialized it is “undefined” 
• Null is used to initialize or empty a variable
CODE CREW | INTRO TO JAVASCRIPT 
IF / ELSE STATEMENTS
CODE CREW | INTRO TO JAVASCRIPT 
ARRAYS
CODE CREW | INTRO TO JAVASCRIPT 
LOOPS
CODE CREW | INTRO TO JAVASCRIPT 
FUNCTIONS
CODE CREW | INTRO TO JAVASCRIPT 
MORE ABOUT FUNCTIONS 
• Function declarations 
• Function expressions 
• Functions and scope 
• Anonymous functions vs named functions
CODE CREW | INTRO TO JAVASCRIPT 
OBJECTS
CODE CREW | INTRO TO JAVASCRIPT 
MORE ABOUT OBJECTS 
• There are several ways to create objects 
• If a variable is part of an object is called a property 
• If a function is part of an object it is called a method
CODE CREW | INTRO TO JAVASCRIPT 
EXERCISE
CODE CREW | INTRO TO JAVASCRIPT 
OBJECT-ORIENTED JAVASCRIPT
CODE CREW | INTRO TO JAVASCRIPT 
PROTOTYPAL INHERITANCE 
• JavaScript uses objects for inheritance 
• Objects are linked to each other by a special 
prototype object 
• If we create a new instance of an object using a 
constructor the new object “inherits” the properties 
and methods of the parent
CODE CREW | INTRO TO JAVASCRIPT 
CONSTRUCTOR FUNCTIONS 
Allow us to create new instances of objects
CODE CREW | INTRO TO JAVASCRIPT 
THIS 
• When a function is called as a method of an object, 
“this” is set to the object the method is called on 
• If we use “this” with a constructor function it refers to 
the new object being created 
• If “this” is called outside of the context of a function it 
will refer to the global object
CODE CREW | INTRO TO JAVASCRIPT 
THE DOM
CODE CREW | INTRO TO JAVASCRIPT 
DOM SELECTORS 
querySelector 
querySelectorAll 
getElementById 
getElementsByTagName 
getElementsByClassName
CODE CREW | INTRO TO JAVASCRIPT 
EVENTS 
onclick 
onfocus 
onblur 
onmouseover 
onload
CODE CREW | INTRO TO JAVASCRIPT 
jQUERY
jQUERY SELECTOR 
$ 
CODE CREW | INTRO TO JAVASCRIPT
jQUERY EVENTS 
click 
focus 
blur 
hover 
load 
CODE CREW | INTRO TO JAVASCRIPT
CODE CREW | INTRO TO JAVASCRIPT 
AJAX 
Allows us to dynamically update a web page without 
having to reload the entire page
CODE CREW | INTRO TO JAVASCRIPT 
APIs
CODE CREW | INTRO TO JAVASCRIPT 
JAVASCRIPT FRAMEWORKS
CODE CREW | INTRO TO JAVASCRIPT 
NODE.js
CODE CREW | INTRO TO JAVASCRIPT 
THANKS MUCH!!! 
Jamal O’Garro 
Code Crew 
Software Engineer + Instructor

More Related Content

ODP
Drilling the Async Library
PPTX
Actor-based concurrency and Akka Fundamentals
PDF
Raphael Amorim - Scrating React Fiber
PDF
Before you jump into Angular
PDF
Converting LotusScript Agents to Java Agents
PDF
Dynamically Composing Collection Operations through Collection Promises
PDF
Ryan Christiani I Heard React Was Good
PDF
Asynchronous javascript
Drilling the Async Library
Actor-based concurrency and Akka Fundamentals
Raphael Amorim - Scrating React Fiber
Before you jump into Angular
Converting LotusScript Agents to Java Agents
Dynamically Composing Collection Operations through Collection Promises
Ryan Christiani I Heard React Was Good
Asynchronous javascript

What's hot (20)

PDF
Reflection in Pharo: Beyond Smalltak
PDF
Reacting to the Isomorphic Buzz
PDF
An Overview of the React Ecosystem
PDF
Gatling @ Scala.Io 2013
PPTX
Top 10 RxJs Operators in Angular
PPTX
Why I don’t want to develop iOS apps in Objective C
PDF
Variables in Pharo5
PDF
Lecture 3 - ES6 Script Advanced for React-Native
PDF
Quick tour to front end unit testing using jasmine
PDF
PDF
Angular Weekend
PDF
Reflection in Pharo: Beyond Smalltak
PPT
Web development basics (Part-5)
PDF
Introduction to Actor Model and Akka
PDF
New in Spring Framework 5.0: Functional Web Framework
PDF
Intro to JavaScript
PDF
Intro To React Native
PPTX
Introduction to Scala language
PPTX
Spring Northwest Usergroup Grails Presentation
PDF
Type script for_java_dev_jul_2020
Reflection in Pharo: Beyond Smalltak
Reacting to the Isomorphic Buzz
An Overview of the React Ecosystem
Gatling @ Scala.Io 2013
Top 10 RxJs Operators in Angular
Why I don’t want to develop iOS apps in Objective C
Variables in Pharo5
Lecture 3 - ES6 Script Advanced for React-Native
Quick tour to front end unit testing using jasmine
Angular Weekend
Reflection in Pharo: Beyond Smalltak
Web development basics (Part-5)
Introduction to Actor Model and Akka
New in Spring Framework 5.0: Functional Web Framework
Intro to JavaScript
Intro To React Native
Introduction to Scala language
Spring Northwest Usergroup Grails Presentation
Type script for_java_dev_jul_2020
Ad

Viewers also liked (10)

PPTX
Intro to Javascript
PDF
Intro to JavaScript
PDF
NodeJs Intro - JavaScript Zagreb Meetup #1
PDF
Javascript intro for MAH
PDF
JavaScript Intro
KEY
Intro to Javascript
PPTX
JavaScript - Intro
PDF
Intro to Javascript and jQuery
PDF
Intro to JavaScript
PPT
Introduction to html
Intro to Javascript
Intro to JavaScript
NodeJs Intro - JavaScript Zagreb Meetup #1
Javascript intro for MAH
JavaScript Intro
Intro to Javascript
JavaScript - Intro
Intro to Javascript and jQuery
Intro to JavaScript
Introduction to html
Ad

Similar to Intro to javascript (4 week) (20)

PPTX
Javascript omg!
PDF
Running JavaScript Efficiently in a Java World
PPTX
WT Unit-3 PPT.pptx
PPTX
JAVASCRIPT and JQUERY For Beginner
PDF
Swift Micro-services and AWS Technologies
PDF
Introduction to AngularJS
PDF
AppeX and JavaScript Support Enhancements in Cincom Smalltalk
PPTX
Lecture 4- Javascript Function presentation
PDF
Better code, littler classes
PDF
Awesome html with ujs, jQuery and coffeescript
PDF
Plugin Development @ WordCamp Norway 2014
PPTX
Java script
PPTX
Java script basics
PDF
Fii Practic Frontend - BeeNear - laborator3
PPTX
Nashorn
KEY
Cascalog at Strange Loop
ZIP
Cappuccino - A Javascript Application Framework
PPTX
Js tacktalk team dev js testing performance
PDF
JavaScript - Chapter 7 - Advanced Functions
PPTX
IP Unit 2.pptx
Javascript omg!
Running JavaScript Efficiently in a Java World
WT Unit-3 PPT.pptx
JAVASCRIPT and JQUERY For Beginner
Swift Micro-services and AWS Technologies
Introduction to AngularJS
AppeX and JavaScript Support Enhancements in Cincom Smalltalk
Lecture 4- Javascript Function presentation
Better code, littler classes
Awesome html with ujs, jQuery and coffeescript
Plugin Development @ WordCamp Norway 2014
Java script
Java script basics
Fii Practic Frontend - BeeNear - laborator3
Nashorn
Cascalog at Strange Loop
Cappuccino - A Javascript Application Framework
Js tacktalk team dev js testing performance
JavaScript - Chapter 7 - Advanced Functions
IP Unit 2.pptx

More from Jamal Sinclair O'Garro (14)

PDF
A Look at TensorFlow.js
PDF
Intro to React
PDF
React + Redux for Web Developers
PDF
Intro to ionic 2
PDF
Intro to ES6 / ES2015
PDF
The Ten Code Commandments
PDF
Using TypeScript with Angular
PDF
Intro to UI-Router/TypeScript
PDF
Intro to Node.js
PDF
Intro to iOS Development
PDF
Intro to rails 2_kg_edited
PDF
Intro to Ruby on Rails
PDF
Intro to HTML + CSS
PDF
Intro to Programming
A Look at TensorFlow.js
Intro to React
React + Redux for Web Developers
Intro to ionic 2
Intro to ES6 / ES2015
The Ten Code Commandments
Using TypeScript with Angular
Intro to UI-Router/TypeScript
Intro to Node.js
Intro to iOS Development
Intro to rails 2_kg_edited
Intro to Ruby on Rails
Intro to HTML + CSS
Intro to Programming

Recently uploaded (20)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Cloud computing and distributed systems.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Approach and Philosophy of On baking technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
cuic standard and advanced reporting.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Chapter 3 Spatial Domain Image Processing.pdf
Electronic commerce courselecture one. Pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Understanding_Digital_Forensics_Presentation.pptx
Cloud computing and distributed systems.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Big Data Technologies - Introduction.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Approach and Philosophy of On baking technology
Machine learning based COVID-19 study performance prediction
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
cuic standard and advanced reporting.pdf
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Intro to javascript (4 week)

  • 1. CODE CREW | INTRO TO JAVASCRIPT INTRO TO JAVASCRIPT Jamal O’Garro Code Crew Software Engineer + Instructor
  • 2. CODE CREW | INTRO TO JAVASCRIPT JAVASCRIPT • Is a programming language • Created by Netscape • Runs in browser & server • Java is not JavaScript! • Is actually named ECMAScript
  • 3. CODE CREW | INTRO TO JAVASCRIPT WHAT DOES JAVASCRIPT LOOK LIKE?
  • 4. CODE CREW | INTRO TO JAVASCRIPT DATA TYPES
  • 5. CODE CREW | INTRO TO JAVASCRIPT LOGICAL OPERATORS
  • 6. CODE CREW | INTRO TO JAVASCRIPT VARIABLES
  • 7. CODE CREW | INTRO TO JAVASCRIPT UNDEFINED vs. NULL • Both represent absence of a value • If a variable has not been initialized it is “undefined” • Null is used to initialize or empty a variable
  • 8. CODE CREW | INTRO TO JAVASCRIPT IF / ELSE STATEMENTS
  • 9. CODE CREW | INTRO TO JAVASCRIPT ARRAYS
  • 10. CODE CREW | INTRO TO JAVASCRIPT LOOPS
  • 11. CODE CREW | INTRO TO JAVASCRIPT FUNCTIONS
  • 12. CODE CREW | INTRO TO JAVASCRIPT MORE ABOUT FUNCTIONS • Function declarations • Function expressions • Functions and scope • Anonymous functions vs named functions
  • 13. CODE CREW | INTRO TO JAVASCRIPT OBJECTS
  • 14. CODE CREW | INTRO TO JAVASCRIPT MORE ABOUT OBJECTS • There are several ways to create objects • If a variable is part of an object is called a property • If a function is part of an object it is called a method
  • 15. CODE CREW | INTRO TO JAVASCRIPT EXERCISE
  • 16. CODE CREW | INTRO TO JAVASCRIPT OBJECT-ORIENTED JAVASCRIPT
  • 17. CODE CREW | INTRO TO JAVASCRIPT PROTOTYPAL INHERITANCE • JavaScript uses objects for inheritance • Objects are linked to each other by a special prototype object • If we create a new instance of an object using a constructor the new object “inherits” the properties and methods of the parent
  • 18. CODE CREW | INTRO TO JAVASCRIPT CONSTRUCTOR FUNCTIONS Allow us to create new instances of objects
  • 19. CODE CREW | INTRO TO JAVASCRIPT THIS • When a function is called as a method of an object, “this” is set to the object the method is called on • If we use “this” with a constructor function it refers to the new object being created • If “this” is called outside of the context of a function it will refer to the global object
  • 20. CODE CREW | INTRO TO JAVASCRIPT THE DOM
  • 21. CODE CREW | INTRO TO JAVASCRIPT DOM SELECTORS querySelector querySelectorAll getElementById getElementsByTagName getElementsByClassName
  • 22. CODE CREW | INTRO TO JAVASCRIPT EVENTS onclick onfocus onblur onmouseover onload
  • 23. CODE CREW | INTRO TO JAVASCRIPT jQUERY
  • 24. jQUERY SELECTOR $ CODE CREW | INTRO TO JAVASCRIPT
  • 25. jQUERY EVENTS click focus blur hover load CODE CREW | INTRO TO JAVASCRIPT
  • 26. CODE CREW | INTRO TO JAVASCRIPT AJAX Allows us to dynamically update a web page without having to reload the entire page
  • 27. CODE CREW | INTRO TO JAVASCRIPT APIs
  • 28. CODE CREW | INTRO TO JAVASCRIPT JAVASCRIPT FRAMEWORKS
  • 29. CODE CREW | INTRO TO JAVASCRIPT NODE.js
  • 30. CODE CREW | INTRO TO JAVASCRIPT THANKS MUCH!!! Jamal O’Garro Code Crew Software Engineer + Instructor