Skip to content

Commit 1b3873e

Browse files
committed
Update
1 parent b69faa4 commit 1b3873e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ <h1>JavaScript Garden</h1>
10511051
<p>In order to check the type of an object, it is highly recommended to use
10521052
<code>Object.prototype.toString</code>; as this is the only reliable way of doing so.
10531053
As shown in the above type table, some return values of <code>typeof</code> are not defined
1054-
in the specification; thus, the can across various implementations.</p>
1054+
in the specification; thus, they can differ across various implementations.</p>
10551055
<p>Unless checking whether a variable is defined, <code>typeof</code> should be avoided at
10561056
<strong>all costs</strong>.</p></section></article>
10571057

@@ -1161,8 +1161,8 @@ <h1>JavaScript Garden</h1>
11611161
value does not change the value of the <strong>type</strong> <code>undefined</code>.</p>
11621162
<p>Still, in order to compare something against the value of <code>undefined</code> it is
11631163
necessary to retrieve the value of <code>undefined</code> in the first place.</p>
1164-
<p>In order to protect code against a possible overwritten <code>undefined</code> variable a
1165-
, common technique used is to add an additional parameter to the encapsulation
1164+
<p>In order to protect code against a possible overwritten <code>undefined</code> variable, a
1165+
common technique used is to add an additional parameter to the encapsulation
11661166
<a href="#scopes">anonymous wrapper</a>, which gets no argument passed to it.</p>
11671167
<pre><code>var undefined = 123;
11681168
(function(something, foo, undefined) {

0 commit comments

Comments
 (0)