Array Basics

👨‍💼 We're building an inventory system that tracks products. Let's start with basic array operations.
🐨 Open and:
  1. Create an array of product names (strings)
  2. Add a new product using push
  3. Access elements by index
  4. 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

Please set the playground first

Loading "Array Basics"
Loading "Array Basics"

No tests here 😢 Sorry.