TypeScript

A more disciplined approach to JavaScript

Arrays

This is the Arrays page.

Arrays are usually used to store multiple values in a single variable.

Here is some other text

const myArray: number[] = [1, 2, 3, 4, 5];

const students: string[] = ["Alice", "Bob", "Charlie"];

A tuple is an array of fixed length and mixed data types.

const myTuple: [string, number] = ["Alice", 25];