Answers for "take last 3 item of array js"

25

js take last item in array

const heroes = ["Batman", "Superman", "Hulk"];
const lastHero = heroes.pop(); // Returns last elment of the Array
// lastHero = "Hulk"
Posted by: Guest on March-16-2020
0

last 10 element of array

System.out.print(Primes1.get(Primes1.size() - 1) + " ");
Posted by: Guest on June-27-2020

Code answers related to "take last 3 item of array js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language