console.log("school Type" in school); // false // Prints true because the school object inherited the to String method from Object.prototype.
console.log("to String" in school); // true has Own Property To find out if an object has a specific property as one of its own property, you use the has Own Property method.
console.log(Own Property ("to String")); // false // Create a new school object with 3 own properties: school Name, school Accredited, and school Location.
var school = ; //Use of the for/in loop to access the properties in the school object for (var each Item in school) Accessing Inherited Properties Properties inherited from Object.prototype are not enumerable, so the for/in loop does not show them.
It would be quite tedious and counterproductive to type the following every time you want to create a new fruit object.