Answers for "how to get element at last of array in javascript"

2

javascript get last element of array

var name = ["jon","tem","kevin", "ramos"];
var lastNameInArray = name[name.length - 1];//  >> ramos
Posted by: Guest on January-08-2021

Code answers related to "how to get element at last of array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language