We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f759e51 commit f5c1108Copy full SHA for f5c1108
doc/en/function/constructors.md
@@ -65,15 +65,12 @@ explicitly return a value.
65
}
66
67
68
- Robot.prototype = {
69
- someFunction: function() {}
70
- };
71
72
new Robot();
73
Robot();
74
75
Both calls to `Robot` return the same thing, a newly created object that
76
-has a property called `method`, which is a
+has a property called `getColor`, which is a
77
[Closure](#function.closures).
78
79
It should also be noted that the call `new Robot()` does **not** affect the
0 commit comments