Objects The primitive types of JavaScript are true, false, numbers, strings, null, and undefined. Every other value is an object. In JavaScript, objects contain propertyName: propertyValue pairs.