Write Your JavaScript Code Here

// Array :- It is collection more the single value inside an variable // entries(): method creates a new iterator object of an array, holding the key/value pairs for every value in the array. const arr=[2,3,4,5,6,7]; let itr = arr.entries();//as the array is an type of object this method assign the key and values pair therefore when we iterate if using the for of loop it return [keys,value] pairs for(let e of itr){ console.log(e); }

Output: