javascript last message from array code example
Example: get last element in array in js
var array = ['red','green','yellow']
console.log(array[array.length-1])
var array = ['red','green','yellow']
console.log(array[array.length-1])