Question · JavaScript and TypeScript course · Module 6: TypeScript Basics

Tuple Types

What is a tuple in TypeScript?

Answer options

  • An object with numeric keys
  • An array that stores only strings
  • A special type for key-value pairs
  • A fixed-length array with specified types at each position

You can check the correct answer by solving this task in the CodeWorlds game.