let i in and let i of js code example
Example 1: javascript for of
const numbers = [1,2,3,4];
for(const item of numbers){
console.log(item);
}
Example 2: for in and for of in js
const iterable = [10, 20, 30];
for (const value of iterable) {
console.log("fef"+value);
}
// 10
// 20
// 30