JavaScript – Difference Between [] and {}
In JavaScript, we use {} braces for creating an empty object. We use [] brackets for creating an empty array. I find the Developer console in Mozilla Firefox or Google Chrome more convenient to print out any object and study the details.
Read More