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

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.