curly braces vs square brackets javascript code example Example: square brackets vs curly brackets javascript { } is any object, has key value pair [ ] is an array