Count Object Keys

Objects ยท easy

Implement `keyCount(obj)` that returns the number of own enumerable keys in `obj`.

Hints
  • Object.keys returns an array of the object's own enumerable keys.

Learning resources

Loading...

Run your code to see results.