how to access a number of items inside a object js code example Example: javascript get number of elements in object Object.keys(obj).length