7 lines
200 B
HTML
7 lines
200 B
HTML
<html><body><script> let colors = ["Red", "Green", "Blue"]; for (let [index, item] of colors.entries()) {
|
|
|
|
console.log(`${index}: ${item} is a color.`);
|
|
|
|
}
|
|
|
|
</script></body></html> |