How can I log items from index 1 to 5 in the current array by using a loop?
let cars = ["AUDI","BMW","LEXUS","VOLKSWAGEN","FERRARY","PORSCHE"]
for (let i = 0; i < cars.length; i++) {
if (i >= 1 && i <= 5) {
console.log("The current index is: " + i);
console.log("The current element is: " + cars[i]);
console.log("\n");
}
}