© 2023 Hashnode
#vec
Collections An array should be used when our collection has a fixed length. We can declare an array with square brackets, [], containing , as a seperator. let integers = [1, 2, 3]; The form of [expression; length] is useful when creating …