javascript dla pętli w vs

let myArray = ["a", "b", "c"];

// for...in iterates over properties (like index)
for (let i in myArray){
  console.log(i); // → 0, 1, 2
} 

// for...of iterates over values
for (let i of myArray){
  console.log(i); // → a, b, c
} 
Intra