Merge pull request #932 from cmdlhz/cmdlhz-patch-1

Updated article.md (better sentence flow)
This commit is contained in:
Ilya Kantor 2019-04-21 22:50:34 +03:00 committed by GitHub
commit 74e6955587
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ The solution looks a little bit awkward, but here it is:
1. Primitives are still primitive. A single value, as desired. 1. Primitives are still primitive. A single value, as desired.
2. The language allows access to methods and properties of strings, numbers, booleans and symbols. 2. The language allows access to methods and properties of strings, numbers, booleans and symbols.
3. When this happens, a special "object wrapper" is created that provides the extra functionality, and then is destroyed. 3. When this happens, a special "object wrapper" that provides the extra functionality is created, and then is destroyed.
The "object wrappers" are different for each primitive type and are called: `String`, `Number`, `Boolean` and `Symbol`. Thus, they provide different sets of methods. The "object wrappers" are different for each primitive type and are called: `String`, `Number`, `Boolean` and `Symbol`. Thus, they provide different sets of methods.