Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

for..of

let colors = ['Red', 'Green', 'Blue'];

for (const [index, color] of colors.entries()) {
    console.log(`${color} is at index ${index}`);
}Code language: JavaScript (javascript)
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
8+4 =