Array Basics

Array Basics
πŸ‘¨β€πŸ’Ό We're building an inventory system that tracks products. Let's start with basic array operations.
🐨 Open
index.ts
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
πŸ’° Arrays store ordered values; you can push, index, and read length.
πŸ“œ MDN - Array

Please set the playground first

Loading "Array Basics"
Loading "Array Basics"
Login to get access to the exclusive discord channel.
Loading Discord Posts