Why am I getting an empty array?

let x = new Array(3)
for (let i = 0; i > x.length; i++) {
    x[i] = i
}
console.log(x)

oops

That’s embarrassing…I’m gonna delete this post xD

We’ve all been there. I’ve been there probably at least 12 billion times :smiley:

1 Like