How to get the length of a Java Script object The Problem You want to determine the length of a Java Script object, which is the number of properties in an object.