let colors = ["red","blue","car","green"]; //remove car from the colors array colors.splice(color[2]); // colors = ["red","blue","green"]