Brackets around an array displaying (JavaScript)


#1

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


#2

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].


#3

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

console.log(bucketList.join(''));