Please help me to understand why the following code works: In the first line there is no new operator. As far as I know, a contructor in JavaScript is a function that initialize objects created by the operator new and they are not meant to return anything. Answer In general, if something is documented as being a constructor, use new