how to target last array javascript code example
Example: how to select last element in a array
int[] karunakar={1,2,3};
System.out.println(karunakar[karunakar.length-1]);
int[] karunakar={1,2,3};
System.out.println(karunakar[karunakar.length-1]);