Which programming language is this?
let pair: [string, number] = ["age", 30]; let tags: string[] = []; tags.push(pair[0]); console.log(tags.length);
Answer: TypeScript
Type annotations such as the tuple type
Play Programming Languages ▸
[string, number] and string[] after a colon are TypeScript, not plain JavaScript.