I'm curious, is there a way to display array indexes in reverse order? Let's consider the following array:
var color = ["red", "green", "blue", "yellow"];
console.log(color[2]);
Normally, the console would display "blue", right?
But what if we want to display something other than "blue"? Perhaps "red," "green," or "yellow" instead. Would using slice be the best option for this?
Thank you