get number of attributes in object javascript code example
Example: number of properties in object javascript
//To count objects own enumarable properties
const objectName={example:10}
console.log(Object.keys(objectName).length)
//To count objects own enumarable properties
const objectName={example:10}
console.log(Object.keys(objectName).length)