Skip to content

Commit 2546787

Browse files
committed
Update
1 parent 1bcc8d9 commit 2546787

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,8 @@ <h1>JavaScript Garden</h1>
678678
set to the <code>prototype</code> of the function object that was called.</p>
679679
<p>If the function that was called has no explicit <code>return</code> statement, then it
680680
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>
683683
<pre><code>function Foo() {
684684
this.bla = 1;
685685
}
@@ -934,7 +934,8 @@ <h1>JavaScript Garden</h1>
934934
<a href="#instanceof"><code>instanceof</code></a>) is probably the biggest
935935
design flaw of JavaScript, as it is near of being <strong>completely broken</strong>.</p>
936936
<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>
938939
<aside>
939940
<p><strong>Note:</strong> While <code>typeof</code> can also be called with a function like syntax
940941
i.e. <code>typeof(obj)</code>, this is not a function call. The two parenthesis will

0 commit comments

Comments
 (0)