However, JavaScript doesn't natively support tuples. In reality, the code snippet above is just an array. That means you can mess with the order.
constdrink= ['brown',true,40];drink[2] ='brown';// nothing stops us from changing the order!
TypeScript gives us the ability to convert our array into a real tuple!
constdrink: [string,boolean,number] = ['brown',true,40];drink[2] ='brown';// TypeScript will complain here
Why Tuples?
Generally, tuples aren't great for representing a piece of data because the indices aren't meaningful. Most of the time, a piece of data is better represented as an object because it associates values to named keys.
But in any case, it's good to know its existence in TypeScript!