Commit graph

4819 commits

Author SHA1 Message Date
Peter Kampjes
bb8fc43dd7
Typos 2020-08-08 11:53:50 -03:00
Ilya Kantor
d4fb59b2d8
Merge pull request #2046 from joaquinelio/patch-1
repeated word 2-3-6 article
2020-08-08 11:44:14 +03:00
joaquinelio
7b0d4773ce
repeated word 2020-08-08 04:24:02 -03:00
Peter Kampjes
beaf89f608
Typos 2020-08-07 22:56:07 -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
Ilya Kantor
0f391b2e2f
Update article.md 2020-08-03 08:15:53 +03:00
Ilya Kantor
cdf382de4c
Merge pull request #2031 from lumosmind/patch-49
refactoring
2020-07-30 01:13:27 +03:00
Mustafa Kemal Tuna
05e1878b3d
refactoring
more readable and more modern way
2020-07-30 00:32:44 +03:00
Peter Kampjes
ed78e2602d
Update article.md
Small fixes.
2020-07-26 21:35:32 -03:00
Peter Kampjes
1f5a40f4c1
Update article.md 2020-07-25 14:18:36 -03:00
Ilya Kantor
b0464bb32c
Merge pull request #2028 from peachesontour/patch-1
Typo
2020-07-25 13:25:38 +03:00
Peter Kampjes
dc0d9158b2
Typo
Thanks for a great tutorial!
2020-07-25 07:06:33 -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
Ilya Kantor
f38eb4e1b1
Merge pull request #2021 from lumosmind/patch-44
to make binding more clear
2020-07-21 21:32:20 +03: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
668207b4c1
Merge pull request #1972 from dvdvdmt/patch-1
Fix a typo
2020-07-18 14:16:21 +03:00
Ilya Kantor
6acac10132
Merge pull request #1973 from akymtl/patch-1
Update article.md
2020-07-18 14:15:59 +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
5641b170d2
Merge pull request #1989 from siddharth-golchha/patch-1
Fixed Typo
2020-07-18 14:11:28 +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
c1767e7f5a
Merge pull request #1996 from smakhl/patch-1
Correct message in sandbox.view iframe
2020-07-18 14:10:07 +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
859fc13f26
Merge pull request #2001 from haond10adp/master
typo
2020-07-18 14:08:30 +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
df9effe06c
Merge pull request #2011 from Pankajtanwarbanna/patch-1
Browser LocalStorage capacity updated to 5 MB.
2020-07-18 14:06:57 +03:00