1. Refresher
2. Array Basics
3. Loops
4. Control Flow
Data types
Data types
Number!
42
Data types
Number!
42
Float!
867.5309
Data types
Number!
42
Float!
867.5309
String!
“Hey, Jude”
Data types
Number!
42
Float!
867.5309
String!
“Hey, Jude”
Boolean!
true
Variables
JavaScript 101 - Class 2
Functions
JavaScript 101 - Class 2
1. Refresher
2. Array Basics
3. Loops
4. Control Flow
What is an Array and
why do I care?
JavaScript 101 - Class 2
JavaScript 101 - Class 2
An array can be stored
as a variable
JavaScript 101 - Class 2
How do I access just
one value?
Array indices
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
How do I tell how many
items are in there?
JavaScript 101 - Class 2
JavaScript 101 - Class 2
Exercise
Create an Array with any values and assign it to
a variable.!
RTFG (read the freaking google) and find out
how to delete an item from a JavaScript array.
1. Refresher
2. Array Basics
3. Loops
4. Control Flow
“for” loops
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
JavaScript 101 - Class 2
Remember this array?
JavaScript 101 - Class 2
How can we “iterate”
through this Array and print
out all of the values?
JavaScript 101 - Class 2
JavaScript 101 - Class 2
Exercise
Use the knowledge you have learned today to:!
create an Array of items and assign it to a
variable!
“iterate” through each item and delete it from
the array!
check the value of your variable you created
for the Array. What does it return?
“while” loops
JavaScript 101 - Class 2
Remember this for
loop?
JavaScript 101 - Class 2
Now, as a while loop…
JavaScript 101 - Class 2
“for” and “while” loops are two
different ways of accomplishing
the exact same thing.
Exercise
Convert your “for” loop from the previous exercise to a
“while” loop and make sure it has the exact same output
as before.!
If you forgot…!
create an Array of items and assign it to a variable!
“iterate” through each item and delete it from the array!
check the value of your variable you created for the
Array. What does it return?
1. Refresher
2. Array Basics
3. Loops
4. Control Flow
No slides allowed here.
Learn to RTFG.
if!
else if!
else!
“switch” statement!
logical operators

More Related Content

PDF
Sprint 41 review
DOCX
PDF
Static sites with react
PDF
EFCC ALERT! JULY 2015
PDF
EFCC Alert! June 2015
PDF
Efcc Alert march 2015
PDF
JavaScript 101 - Class 1
PDF
React.js Basics - ConvergeSE 2015
Sprint 41 review
Static sites with react
EFCC ALERT! JULY 2015
EFCC Alert! June 2015
Efcc Alert march 2015
JavaScript 101 - Class 1
React.js Basics - ConvergeSE 2015

Viewers also liked (7)

PDF
EFCC Alert May 2015
DOCX
My Biosketch
PDF
Efcc alert january 2015
PDF
Basic Golf Etiquettes
PDF
Efcc Alert April 2015
PDF
Golf Clubs for Beginners
PDF
ZERO TOLERANCE
EFCC Alert May 2015
My Biosketch
Efcc alert january 2015
Basic Golf Etiquettes
Efcc Alert April 2015
Golf Clubs for Beginners
ZERO TOLERANCE
Ad

Similar to JavaScript 101 - Class 2 (20)

PPTX
Any Which Array But Loose
PPTX
Lesson 11 one dimensional array
PPT
4.1 sequentioal search
DOCX
Array andfunction
PPTX
Java 103 intro to java data structures
PPTX
Introduction-to-Arrays-in-Java . Exploring array
PDF
Programming in Java: Arrays and Array Lists
PPTX
Mod 12
PPTX
Week 11.pptx
DOCX
Please Please Please Read the instructions and do everything li.docx
PPTX
CAP615-Unit1.pptx
PPTX
10 arrays and pointers.pptx for array and pointer
PPTX
Oz_Chap 2_M3_Lesson Slides_Variables.pptx
PPT
PDF
Java_Question-Bank.docx-1.pdf
PDF
Arrays In Python | Python Array Operations | Edureka
PDF
14. Arrays I
PPTX
Java Unit 2 (Part 2)
PPT
Array
PPT
Sorting algorithms in Data Structure
Any Which Array But Loose
Lesson 11 one dimensional array
4.1 sequentioal search
Array andfunction
Java 103 intro to java data structures
Introduction-to-Arrays-in-Java . Exploring array
Programming in Java: Arrays and Array Lists
Mod 12
Week 11.pptx
Please Please Please Read the instructions and do everything li.docx
CAP615-Unit1.pptx
10 arrays and pointers.pptx for array and pointer
Oz_Chap 2_M3_Lesson Slides_Variables.pptx
Java_Question-Bank.docx-1.pdf
Arrays In Python | Python Array Operations | Edureka
14. Arrays I
Java Unit 2 (Part 2)
Array
Sorting algorithms in Data Structure
Ad

More from Robert Pearce (7)

PDF
How to Lose Functional Programming at Work
PDF
Some Functional Programming in JavaScript and Ramda.js
PDF
A Path to Point-Free JavaScript
PDF
From Promises & async/await to Async Algebraic Data Types
PDF
hakyll – haskell static site generator
PDF
FP in JS-Land
PDF
Behaviour & Your Team
How to Lose Functional Programming at Work
Some Functional Programming in JavaScript and Ramda.js
A Path to Point-Free JavaScript
From Promises & async/await to Async Algebraic Data Types
hakyll – haskell static site generator
FP in JS-Land
Behaviour & Your Team

Recently uploaded (20)

PDF
Internet Download Manager IDM Crack powerful download accelerator New Version...
PPTX
Chapter 1 - Transaction Processing and Mgt.pptx
PDF
novaPDF Pro 11.9.482 Crack + License Key [Latest 2025]
PDF
How Tridens DevSecOps Ensures Compliance, Security, and Agility
PPTX
Cybersecurity: Protecting the Digital World
PPTX
DevOpsDays Halifax 2025 - Building 10x Organizations Using Modern Productivit...
PPTX
Computer Software - Technology and Livelihood Education
PPTX
Lecture 5 Software Requirement Engineering
PDF
Practical Indispensable Project Management Tips for Delivering Successful Exp...
PPTX
Airline CRS | Airline CRS Systems | CRS System
PDF
SOFTWARE ENGINEERING Software Engineering (3rd Edition) by K.K. Aggarwal & Yo...
PDF
CapCut PRO for PC Crack New Download (Fully Activated 2025)
PDF
E-Commerce Website Development Companyin india
PPTX
HackYourBrain__UtrechtJUG__11092025.pptx
PPTX
CNN LeNet5 Architecture: Neural Networks
PDF
Visual explanation of Dijkstra's Algorithm using Python
PDF
AI Guide for Business Growth - Arna Softech
PDF
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
PPTX
MLforCyber_MLDataSetsandFeatures_Presentation.pptx
PDF
Workplace Software and Skills - OpenStax
Internet Download Manager IDM Crack powerful download accelerator New Version...
Chapter 1 - Transaction Processing and Mgt.pptx
novaPDF Pro 11.9.482 Crack + License Key [Latest 2025]
How Tridens DevSecOps Ensures Compliance, Security, and Agility
Cybersecurity: Protecting the Digital World
DevOpsDays Halifax 2025 - Building 10x Organizations Using Modern Productivit...
Computer Software - Technology and Livelihood Education
Lecture 5 Software Requirement Engineering
Practical Indispensable Project Management Tips for Delivering Successful Exp...
Airline CRS | Airline CRS Systems | CRS System
SOFTWARE ENGINEERING Software Engineering (3rd Edition) by K.K. Aggarwal & Yo...
CapCut PRO for PC Crack New Download (Fully Activated 2025)
E-Commerce Website Development Companyin india
HackYourBrain__UtrechtJUG__11092025.pptx
CNN LeNet5 Architecture: Neural Networks
Visual explanation of Dijkstra's Algorithm using Python
AI Guide for Business Growth - Arna Softech
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
MLforCyber_MLDataSetsandFeatures_Presentation.pptx
Workplace Software and Skills - OpenStax

JavaScript 101 - Class 2