Answers for "js get last element typed in console"

5

javascipt get last element of array

const arr = [1,2,3] ;
console.log(arr[arr.length - 1]);
Posted by: Guest on June-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language