Arrays are defined using square brackets [] and hold ordered collections of values. They are dynamic and can hold elements of different types.
You can extract elements from an array using destructuring:
Use built-in functions to manipulate arrays:
Note: Popping from an empty array
pop([])is safely handled and will gracefully throw an error rather than panicking the VM.