The new keyword in JavaScript is very straightforward to use: function Rectangle (x, y) { this.x = x; this.y = y; } var rect = new Rectangle(2, 3); rect.x //=> 2 When a function is called with the new keyword, a new object is created and that object becomes the context of the function call. That context is available within the function using the this keyword. If the function does not explicitly re