function Box(width, height)
{
this.width = width;
this.height = height;
}
var myBox = new Box(5,5);
What is the
new
keyword doing here technically? Is it creating a new function? Or is it creating a new object and applying the function to it?If so then this is a way to create a "Box", does this mean the
this
keyword is actually referring to the object myBox?