// Python: for i in range(0, 3): print(i) // JavaScript: for ( i in Array.from({ length: 3 }) ) console.log(i)