File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -678,8 +678,8 @@ <h1>JavaScript Garden</h1>
678
678
set to the < code > prototype</ code > of the function object that was called.</ p >
679
679
< p > If the function that was called has no explicit < code > return</ code > statement, then it
680
680
implicitly returns the value of < code > this</ code > (the new object). Otherwise it returns
681
- the value of the < code > return</ code > statement, < strong > but</ strong > only if < code > typeof returnValue </ code > is
682
- < code > object</ code > .</ p >
681
+ the value of the < code > return</ code > statement, < strong > but</ strong > only if the return value is an
682
+ object.</ p >
683
683
< pre > < code > function Foo() {
684
684
this.bla = 1;
685
685
}
@@ -934,7 +934,8 @@ <h1>JavaScript Garden</h1>
934
934
< a href ="#instanceof "> < code > instanceof</ code > </ a > ) is probably the biggest
935
935
design flaw of JavaScript, as it is near of being < strong > completely broken</ strong > .</ p >
936
936
< p > Although < code > instanceof</ code > still has its limited uses, < code > typeof</ code > really has only one
937
- practical use case, which < strong > not happens</ strong > to be checking the type of an object. </ p >
937
+ practical use case, which does < strong > not</ strong > happen to be checking the type of an
938
+ object. </ p >
938
939
< aside >
939
940
< p > < strong > Note:</ strong > While < code > typeof</ code > can also be called with a function like syntax
940
941
i.e. < code > typeof(obj)</ code > , this is not a function call. The two parenthesis will
You can’t perform that action at this time.
0 commit comments