SlideShare a Scribd company logo
JavaScript
Beyond
jQuery
JavaScript
Beyond
jQuery
★ Traversing The DOM
★ Element Objects
★ Functions
★ Native Objects
★ Closures
★ Manipulating Data
★ Prototypal Inheritance
★ Revealing Modules
★ Function Composition
1.
TRAVERSING
THE
DOM
First Let's Start at the
Beginning?
Why Would you Use jQuery?
▸Browser Support
Why Would you Use jQuery?
▸Less Typing.
▸Easier to Learn
Why Would you Use jQuery?
▸It already comes packages in
WordPress
USING
VANILLA
JS
Is Generally a lot Easier Than You Think
Events
Classes
THE
ELEMENT
INTERFACE
The Element Interface represents an Object of a
Document.
2.
JAVASCRIPT
OBJECTS
The Building Blocks
of the Language.
Primary Javascript Objects
★ Function
★ String
★ Array
★ Number
★ Boolean
★ TypeError
3.
THE
JAVASCRIPT
FUNCTION
It’s Where Lots of the
Magic Happens
Function
Definitions
JavaScript Functions are First
Class Citizens
★ Functions can be assigned to variables and
Passed Around.
★ Functions can accept other Functions as
arguments.
★ Functions can return other functions.
BUT
MOST
OF
ALL
Every Function
in Javascript is
a Function Object
FUNCTION
OBJECT
PROPERTIES
& METHODS
4.
JAVASCRIPT
CLOSURES
A Function that can be
stored as a variable, and
that has the special ability
to access other variables
local to the scope it was
created in.
Javascript Function have access to variable defined above
their internal scope.
Javascript Function can also override external variables with
their own version with the same name.
But Variables defined inside a Javascript Function are not
accessible from outside its scope.
But this highlights one of the top use cases for Closures in
Javascript: Immediately-Invoked Function Expression
Practical IFFE Example
JavaScript Beyond jQuery
5.
MANIPULATING
DATA
The Javascript Array
Object Methods
Array.prototype.map( );
The map() method creates a new array with
the results of calling a provided function on
every element in this array.
Array.prototype.map( );
Array.prototype.map( );
Array.prototype.filter( );
The filter() method creates a new array
with values that pass the test implemented by
the function provided.
Array.prototype.filter( );
Array.prototype.filter( );
Array.prototype.filter( );
Array.prototype.reduce( );
The reduce() method applies a function
against an accumulator and each value of an
array (from left to right) to reduce it to a single
value.
Array.prototype.reduce( );
Array.prototype.reduce( );
Array.prototype.reduce( );
Array.prototype.reduce( );
6.
PROTOTYPAL
INHERITANCE
Javascript Objects
inheriting from other
Objects
Class Based Inheritance
In a class based system you can define a Class, which will act as
a blueprint for each new Object.
Classes can inherit from other classes to create a hierarchy.
When you create a new object from the class it is considered an
Instance of that class.
JavaScript Beyond jQuery
Prototype Based Inheritance
Prototype Languages such as Javascript to not have this
distinction.
Languages like Javascript simply have Objects, which can inherit
from other objects.
Javascript’s Prototypal Inheritance is so hard to understand,
because it gives us this new keyword, and tries to mimic class
based inheritances.
Prototypal Inheritance
Prototypal Inheritance
Prototypal Inheritance (continued)
Factory Function
Factory Function (Continued)
Factory Function (Continued)
Prototypal Inheritance (Continued)
Composition vs Inheritance
7.
REVEALING
MODULE
PATTERN
Another Way to Build
Objects
Function + Closure = Revealing Module
Pattern
Revealing Module Pattern
8.
FUNCTION
COMPOSITION
Functions As
Ingredients
FUNCTION
COMPOSITION
FUNCTION
COMPOSITION
FUNCTION
COMPOSITION
FUNCTION
COMPOSITION
FUNCTION
COMPOSITION
Resources
Resources
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures
Resources
http://youmightnotneedjquery.com/
Develop With WP
Hello my Name is Bobby Bryant. I am A
web developer at 10up
twitter: /mrbobbybryant
youtube: /developwithwp
github: /mrbobbybryant

More Related Content

ODP
JavaScript Object Oriented Programming Cheat Sheet
ODP
JavaScript global object, execution contexts & closures
PPTX
Advanced Javascript
PPTX
Javascript Prototype Visualized
PPTX
JavsScript OOP
PPTX
Object oriented java script
PDF
Prototype
PPTX
Introduction to JavaScript
JavaScript Object Oriented Programming Cheat Sheet
JavaScript global object, execution contexts & closures
Advanced Javascript
Javascript Prototype Visualized
JavsScript OOP
Object oriented java script
Prototype
Introduction to JavaScript

What's hot (19)

PPTX
Object Oriented Programming In JavaScript
PDF
JavaScript Execution Context
PDF
Introduction to Object Oriented Javascript
PPTX
JS - Basics
PDF
Javascript for Intermediates
PDF
JavaScript objects and functions
PDF
javascript objects
PPTX
JavaScript Basics
ODP
Best practices in Java
ODP
Introduction of Object Oriented JavaScript
PPT
Java Serialization
PPTX
What is String in Java?
PPTX
Functions and Objects in JavaScript
PPTX
Mule java part-3
PDF
JavaScript - Chapter 8 - Objects
PDF
How prototype works in java script?
PPTX
Object Oriented JavaScript - II
PPTX
Groovy / comparison with java
PPT
Lesson3
Object Oriented Programming In JavaScript
JavaScript Execution Context
Introduction to Object Oriented Javascript
JS - Basics
Javascript for Intermediates
JavaScript objects and functions
javascript objects
JavaScript Basics
Best practices in Java
Introduction of Object Oriented JavaScript
Java Serialization
What is String in Java?
Functions and Objects in JavaScript
Mule java part-3
JavaScript - Chapter 8 - Objects
How prototype works in java script?
Object Oriented JavaScript - II
Groovy / comparison with java
Lesson3
Ad

Similar to JavaScript Beyond jQuery (20)

PPTX
JavaScript OOPS Implimentation
PDF
JavaScript Programming
PPTX
Object oriented javascript
PPT
Java script unleashed
PPT
Introduction to Javascript
PPTX
PPTX
Javascript Objects Deep Dive
PPTX
Java scriptforjavadev part2a
PPTX
Javascriptinobject orientedway-090512225827-phpapp02
PPT
Advanced JavaScript
PPTX
JavaScript in Object-Oriented Way
PPTX
Understanding Object Oriented Javascript - Coffee@DBG June
PDF
Clojure for Java developers
PDF
PPTX
Object oriented programming in java
PDF
Important JavaScript Concepts Every Developer Must Know
PDF
Javascript
PPTX
JavaScript (without DOM)
PPTX
javascript
JavaScript OOPS Implimentation
JavaScript Programming
Object oriented javascript
Java script unleashed
Introduction to Javascript
Javascript Objects Deep Dive
Java scriptforjavadev part2a
Javascriptinobject orientedway-090512225827-phpapp02
Advanced JavaScript
JavaScript in Object-Oriented Way
Understanding Object Oriented Javascript - Coffee@DBG June
Clojure for Java developers
Object oriented programming in java
Important JavaScript Concepts Every Developer Must Know
Javascript
JavaScript (without DOM)
javascript
Ad

Recently uploaded (20)

PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
Introduction to Information and Communication Technology
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
E -tech empowerment technologies PowerPoint
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
The Internet -By the Numbers, Sri Lanka Edition
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
innovation process that make everything different.pptx
PPTX
presentation_pfe-universite-molay-seltan.pptx
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
Digital Literacy And Online Safety on internet
PDF
Sims 4 Historia para lo sims 4 para jugar
PPTX
Internet___Basics___Styled_ presentation
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Introuction about WHO-FIC in ICD-10.pptx
Unit-1 introduction to cyber security discuss about how to secure a system
Introduction to Information and Communication Technology
522797556-Unit-2-Temperature-measurement-1-1.pptx
E -tech empowerment technologies PowerPoint
Design_with_Watersergyerge45hrbgre4top (1).ppt
The Internet -By the Numbers, Sri Lanka Edition
PptxGenJS_Demo_Chart_20250317130215833.pptx
innovation process that make everything different.pptx
presentation_pfe-universite-molay-seltan.pptx
Tenda Login Guide: Access Your Router in 5 Easy Steps
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
international classification of diseases ICD-10 review PPT.pptx
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
An introduction to the IFRS (ISSB) Stndards.pdf
Digital Literacy And Online Safety on internet
Sims 4 Historia para lo sims 4 para jugar
Internet___Basics___Styled_ presentation

JavaScript Beyond jQuery

Editor's Notes

  • #4: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #12: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #14: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #19: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #26: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #39: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #40: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #41: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #42: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #51: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #54: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #55: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #56: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #57: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #58: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented
  • #59: Why do we have jQuery? The core JavaScript tenets of DOM traversal, manipulation, event handling, server communication and CSS effects are well implemented and documented