how to return how many properties in an object javascripy code example
Example: js obj getting count of properties
let count = 0;
for (let k in myobj) if (myobj.hasOwnProperty(k)) count++;
let count = 0;
for (let k in myobj) if (myobj.hasOwnProperty(k)) count++;