Arrays hold a collection of elements all of the same type. When declaring an empty array, the type must be provided.
You can access the values in an array by indexing with square brackets.
You can access the length of the array through the length
function.
You can append elements of the same type into the array by using the push
function.
Check out the playground!