SyntaxFix
Write A Post
Hire A Developer
Questions
I hope you have to get last element from array variable so my solution
var arr = [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]; var mynumber = arr [arr .length - 1]; //var mynumber = 10;