Examples:
var myArr = [1, 4, 6, 2]; myArr.length == 4; myArr.reverse() == [2, 6, 4, 1]; myArr.push(7) myArr == [2, 6, 4, 1, 7];
Create a game where the player pilots a helicopter with the mouse and collects coins while avoiding obstacles
Arrays are extremely useful and can do many complicated actions. Array methods help you work with arrays much faster and can really cut down on the length of your programs as well as make them much easier to read and understand.
In the first part of this course we will be making a simplified version of the game which allows the player to move and to collect coins
Learn to use array methods to work with arrays much more efficiently
Learn about accessing and using arrays to form crazy sentences!