javascript for beginners workshop module 3 - html5 developer conference 2015
TRANSCRIPT
M3 Arrays
Pablo Farias Navarro@ZenvaTweetshttps://zenva.com
Variables
Arrays
Functions
Canvas
Conditionals
Loops
Events
OOP
Intro
Arrays
LIVE CODING
Arrays are a type of structure found in different programming languages
An array is a collection of values, stored in a variable
Shopping list example
Adding and removing array elements
LIVE CODING
Array length
Push push(el1, el2)
Pop pop()
Splice position, num_elements_remove [, added]
Arrays and Objects
LIVE CODING
2 cases
List of enemies
Player with list of weapons
Coding Challenge!