Tuple
Tuple is a special array, the elements in the tuple can be various data types, namely a tuple can contain different type of elements.
1.
The first syntax to create a tuple is:
var tupleName = [value1,value2,value3,…]
The data type of every element can be different.
2.
The second syntax to create a tuple is:
var tupleName = [ ];
tupleName[0] = value0;
tupleName[1] = value1;
tupleName[2] = value2;
Create an empty tuple first, and then initializes each element.