Skip to content

Commit

Permalink
Fix small typo (freeCodeCamp#314)
Browse files Browse the repository at this point in the history
* Add prototypes article

* Fix typos: Change 'Regexp' to 'RegExp'
  • Loading branch information
vancanhuit authored and Bouncey committed Sep 23, 2017
1 parent f50b737 commit 6307d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/javascript/prototypes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Built-in objects in JavaScript is constructed similar as above. For example:

- Prototype of objects created with `new Object()` or `{}` syntax is `Object.prototype`.
- Prototype of arrays created with `new Array()` or `[]` syntax is `Array.prototype`.
- And so on with other built-in objects such as `Date` and `Regexp`.
- And so on with other built-in objects such as `Date` and `RegExp`.

`Object.prototype` is inherited by all objects and it has no prototype (its prototype is `null`).

Expand Down

0 comments on commit 6307d10

Please sign in to comment.