how to check how many keys are there in object javascript code example Example: js count keys in object Object.keys(obj).length