Prototype properties
Just the main prototype functions of all objects and methods to access their value
by David McClelland
JavaScript
var myObject = {
name: "myObjectName"
};
var myString = "";
console.log("name: " + myObject.name);
console.log("hasOwnProperty: " + myObject.hasOwnProperty("name"));
console.log("constructor: " + myObject.constructor);
console.log("toString: " + myObject.toString());
console.log("toLocaleString: " + myObject.toLocaleString());
console.log("isPrototype: " + Object.isPrototypeOf(String));
console.log("enumerable: " + myObject.propertyIsEnumerable("name"));