Array Review
Quick refresher on arrays:
An array is created the same way as a variable
Anything can go into an array by using
[]
Each data value is paired with a key called an index.
Values in the array can be accessed with their indexes using
Array[index]
.
File Location
We will be working in the following file:
Practice
Create an array of cars with 3 values, then print all three to the console.
Create an array with multiple data-types and print each to the console.
Several of the string methods will also work with arrays. Though we'll go further into detail on array methods later, play around with a few of them.
Last updated