Open Developer: Strg Alt i
function Car(color, doors){
this.color = color;
this.doors = doors;
this.aboutExtras = function(){console.log("The color is: "+this.color+" . Doors: "+this.doors);}
}
var ford = new Car("red", 4);
ford.aboutExtras(); //The color is: red. Doors: 4
for(var property in ford){
console.log("Name: "+ property);
console.log("Wert: "+ford[property]);
}