how to find out the length of object in javascript code example Example: javascript object length var size = Object.keys(myObj).length;