mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): removed confusing sentence (#49538)
fix(curriculum): removed confusing sentance ```diff # --description-- ... - Nearly every object in JavaScript has a `prototype` property which is part of the constructor function that created it. ```
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ console.log(duck.numLegs);
|
||||
console.log(canary.numLegs);
|
||||
```
|
||||
|
||||
Since all instances automatically have the properties on the `prototype`, think of a `prototype` as a "recipe" for creating objects. Note that the `prototype` for `duck` and `canary` is part of the `Bird` constructor as `Bird.prototype`. Nearly every object in JavaScript has a `prototype` property which is part of the constructor function that created it.
|
||||
Since all instances automatically have the properties on the `prototype`, think of a `prototype` as a "recipe" for creating objects. Note that the `prototype` for `duck` and `canary` is part of the `Bird` constructor as `Bird.prototype`.
|
||||
|
||||
# --instructions--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user