how to know number of properties of object in 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)