Commit graph

2834 commits

Author SHA1 Message Date
Ilya Kantor
3a924fc1e8 minor fixes 2020-08-10 22:52:57 +03:00
Ilya Kantor
fbf443e414 minor fixes 2020-08-09 21:03:34 +03:00
Ilya Kantor
2bf8a27fad minor fixes 2020-08-09 21:02:40 +03:00
Ilya Kantor
1cfd422270 minor fixes 2020-08-09 21:02:05 +03:00
Denis
0557a16f81
Update article.md
Added link to Brython Python transpiler to JavaScript
2020-08-09 20:25:22 +03:00
Ilya Kantor
7907cd667c minor fixes 2020-08-04 10:33:40 +03:00
Ilya Kantor
f0ad0bafa2 minor fixes 2020-08-04 10:30:25 +03:00
Ilya Kantor
fb4dda68e5 minor fixes 2020-08-04 10:30:13 +03:00
Ilya Kantor
d2f7d14288 minor fixes 2020-08-04 10:29:38 +03:00
Ilya Kantor
0e592a95c7 minor fixes 2020-08-04 10:29:29 +03:00
Ilya Kantor
4133532cd8 minor fixes 2020-08-04 10:29:19 +03:00
Ilya Kantor
0f7443b5df minor fixes 2020-08-04 09:25:45 +03:00
Mustafa Kemal Tuna
05e1878b3d
refactoring
more readable and more modern way
2020-07-30 00:32:44 +03:00
Mustafa Kemal Tuna
7d0d65478d
clarifying example code
An interesting question may arise in the example above: what’s the value of this inside set fullName(value)? Where are the properties this.name and this.surname written: into user or admin?

The answer is simple: this is not affected by prototypes at all.

No matter where the method is found: in an object or its prototype. In a method call, this is always the object before the dot.

So, the setter call admin.fullName= uses admin as this, not user.

That is actually a super-important thing, because we may have a big object with many methods, and have objects that inherit from it. And when the inheriting objects run the inherited methods, they will modify only their own states, not the state of the big object.

The example code doesn't show these concepts. Also, these additions can make readers ask questions before the explanation of the example code.
2020-07-25 05:38:45 +03:00
Aiyo
f19c56b15d
BigInt header grammar fix 2020-07-24 10:22:22 +02:00
Ilya Kantor
8e1f438a5b
Merge pull request #1990 from lumosmind/patch-43
more definitive title
2020-07-23 23:09:25 +03:00
Mustafa Kemal Tuna
41766c939e
grammar fix 2020-07-23 22:31:55 +03:00
Mustafa Kemal Tuna
8f3831be1c
One line of code creates a lot of confusing
"// obj.toString === obj.__proto__.toString == Object.prototype.toString"
It is look like JS code but it gives different result from what we want to get.
There is different kind of equality operator ant these give more confusing what is the purpose of these?
It can be better to separate this line into 2 line of code to make it sensible and readable.
Subject and code is already hard but there is no need to make readers ask unnecessary questions.
2020-07-23 13:51:13 +03:00
Nguyễn Đức Hào
85b1e7aa34
Update article.md 2020-07-23 11:59:32 +07:00
Mustafa Kemal Tuna
b70f9498d1
grammatical fix 2020-07-21 20:27:36 +03:00
Mustafa Kemal Tuna
4fdf4c3083
to make binding more clear
understanding "pre-bound value"  can be little bit hard.
2020-07-21 19:04:09 +03:00
LeviDing
c2f8c4fb9e
Update article.md 2020-07-18 23:32:51 +08:00
Ilya Kantor
ae1171069c
Merge pull request #1970 from rromanenko/patch-1
Update article.md
2020-07-18 14:16:30 +03:00
Ilya Kantor
04c0570e22
Merge pull request #1974 from akymtl/patch-3
Update article.md
2020-07-18 14:15:51 +03:00
Ilya Kantor
5e74d7cbf6
Merge pull request #1975 from traxium/patch-1
Fix typo in /instanceof section (widow -> Window)
2020-07-18 14:15:42 +03:00
Ilya Kantor
83793dc968
Merge pull request #1976 from DanGhanbari/patch-1
update solution.md
2020-07-18 14:15:22 +03:00
Ilya Kantor
86222ff911
Merge pull request #1978 from peachesontour/patch-2
Typos
2020-07-18 14:14:46 +03:00
Ilya Kantor
918947e129
Merge pull request #1980 from liuernan/patch-1
a little confused by this description
2020-07-18 14:14:32 +03:00
Ilya Kantor
e251f05e58
Merge pull request #1983 from lumosmind/patch-40
is 'if' operator?
2020-07-18 14:12:58 +03:00
Ilya Kantor
67e54bf269
Merge pull request #1984 from SakiPgr/patch-1
Corrected a typo
2020-07-18 14:12:44 +03:00
Ilya Kantor
80f76533e1
Merge pull request #1987 from pushpend3r/patch-1
Typo mistake
2020-07-18 14:11:41 +03:00
Ilya Kantor
83c01f4be2
Merge pull request #1993 from shubham-maurya/patch-1
Update article.md
2020-07-18 14:10:50 +03:00
Ilya Kantor
a896d3c009
Merge pull request #1995 from leviding/patch-14
Fix error of BigInt
2020-07-18 14:10:39 +03:00
Ilya Kantor
4716d10dab
Merge pull request #1997 from leviding/patch-15
Fix typo error: delete a blank
2020-07-18 14:09:57 +03:00
Ilya Kantor
6e0944aeb1
Merge pull request #1999 from zhang1pr/master
Fix a comment
2020-07-18 14:09:20 +03:00
Ilya Kantor
b4dfc5d4ec
Merge pull request #2000 from DaliborP/patch-1
8.4  Prototype methods... - Fix code typo
2020-07-18 14:08:45 +03:00
Ilya Kantor
1f6b1c77d8
Merge pull request #2003 from m47h4r/minor-fix-nullish-coalescing-operator
minor fix: precedence is 5 according to MDN
2020-07-18 14:08:18 +03:00
Ilya Kantor
ffbf1a8dd8
Merge pull request #2010 from leviding/patch-17
Now _.bindAll(object, methodNames) must specify methodNames
2020-07-18 14:07:06 +03:00
Ilya Kantor
b9477777ba
Merge pull request #2012 from leviding/patch-18
Fix minor typo error: ol number
2020-07-18 14:06:40 +03:00
Ilya Kantor
3558415261
Merge pull request #1977 from peachesontour/patch-1
Typos
2020-07-18 14:05:58 +03:00
LeviDing
dfcacf2d82
Fix minor typo error: ol number 2020-07-18 12:16:23 +08:00
LeviDing
de13fafd1b
Update bindAll of lodash 2020-07-17 14:11:01 +08:00
Peter Roche
72482bc435
Update article.md
Revision to unary plus not allowed bigints description in response to PR
2020-07-16 10:20:25 -06:00
Ilya Kantor
c3a11c85e5
Merge pull request #2004 from leviding/patch-16
Change equality sign `=` to equality sign `==`
2020-07-12 16:21:12 +03:00
Ilya Kantor
1f0fcb7de6 minor fixes 2020-07-12 16:20:39 +03:00
LeviDing
450612a09e
Fix some confusing expression 2020-07-12 18:45:38 +08:00
LeviDing
abfa6dc1fe
Change equality sign = to equality sign == 2020-07-12 18:33:50 +08:00
Mazhar Zandsalimi
56edf4ac5b
minor fix: precedence is 5 according to MDN 2020-07-11 13:27:49 +04:30
Dalibor Pasalic
38526232a6
8.4 Prototype methods... - Fix code typo
Move comma before square bracket
Object.create(proto[, descriptors])
2020-07-10 08:32:18 +02:00
Chao Zhang
9e3065f6ae Fix a comment 2020-07-09 15:48:36 -04:00