Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

number of properties in object javascript

//To count objects own enumarable properties
const objectName={example:10}
console.log(Object.keys(objectName).length)
 
PREVIOUS NEXT
Tagged: #number #properties #object #javascript
ADD COMMENT
Topic
Name
7+2 =