do we need curly brackets in javascript code example
Example 1: javascript function in brackets
(function() {
// code
})();
Example 2: square brackets vs curly brackets javascript
{ } is any object, has key value pair
[ ] is an array
(function() {
// code
})();
{ } is any object, has key value pair
[ ] is an array