//Lets we have a array called arr let arr = ["s","fg","d"] //Lets print the last element print(arr[arr.length-1])