Is there a difference between calling a javascript function with or without the new keyword? For instance if I had the function:
function computer(){
this.hardDrive = "big";
this.processor = "fast";
}
and I then call it in two different ways:
var hp = computer();
var hp = new computer();
what is going to be the difference between the two function calls?