Curly braces - syntax for creating a Javascript object (which is really an illustrious collection of key / value pairs); brackets create a volatile array.
They are called literals, and they are convenient shortcuts to help you create objects and arrays without a lot of typing (good, because you use them all the time). Many other programming languages have the same literal syntax for maps and arrays.
source share