//To count objects own enumarable properties const objectName={example:10} console.log(Object.keys(objectName).length)