How can I count a JavaScript object’s attributes?

To count how many attributes is in the JavaScript object we can use next code:

Comments are closed.