amount of keys in object javascript code example Example: js count keys in object Object.keys(obj).length