December 2017
Beginner
372 pages
10h 32m
English
Tuples can be seen as an advanced type of an array wherein we can have an array with elements not of the same type. For example, we can have any tuple that will have the first element of type string and the second element as a number, as shown here:
let details:[string, number];details= ['John', 42];
The preceding code allows us to manage different data types in a single structure, which provides flexibility.
Read now
Unlock full access