Brackets around an array displaying (JavaScript)

Exactly what the subject of this is. I’m just curious why that is.

When you alert/log/whatever a variable, it displays it exactly as it is- in this case, it displays the entire array, brackets and all.
Just for future reference, if you’d like to find an individual value, use bucketList[number].

1 Like

If you want it to print the code without commas, try the following: