square brackets vs curly brackets javascript

JavaScript
{ } is any object, has key value pair
[ ] is an array
Source

Also in JavaScript: