Skip to main content
All lessons

Arrays

7 min · TypeScript

Hold many values under one typed name, and reach for the one you want.

TypeScript · Arrays0/5 cleared

Enemy 1 of 5

An array holds several values in order, inside [ ], separated by commas. Type it as string[] or number[].

You
Kernel Hellhound

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: [ 'apple', 'banana', 'cherry' ]