for in for javascript code example
Example 1: javascript for of
const array = ['hello', 'world', 'of', 'Corona'];
for (const item of array) {
console.log(item);
}
Example 2: for javascipt
for (let i = 0; i < 9; i++) {
str = str + i;
}
const array = ['hello', 'world', 'of', 'Corona'];
for (const item of array) {
console.log(item);
}
for (let i = 0; i < 9; i++) {
str = str + i;
}