Array Basics
👨💼 We're building an inventory system that tracks products. Let's start with
basic array operations.
- Create an array of product names (strings)
- Add a new product using
push - Access elements by index
- Get the length of the array
💰 Array syntax:
const items: Array<string> = ['item1', 'item2', 'item3']
items.push('item4') // Add to end
items[0] // First element
items.length // Number of elements