javascript every thing after index from array code example Example: how to get every index of array in javascript for(const element of array) console.log(element)