function house (windows,doors,attic) {
this.windows = windows;
this.doors = wood;
this.attic = stuff;
}
var parts = house_two ("glass","wood","spiders");
var house_parts = house_two.windows;
document.write("I want" +house_parts+ "doors");
I want to understand objects in javascript, so far it hasn't been that exciting as learning other parts of the language. I want to know what is wrong with the code above, and what is right ?
I know I can use object literals I don't want to use literals just yet.