You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>JavaScript Garden is published under the <ahref="https://github.com/BonsaiDen/JavaScript-Garden/blob/next/LICENSE">MIT license</a> and hosted on
61
65
<ahref="https://github.com/BonsaiDen/JavaScript-Garden">GitHub</a>. If you find errors or typos please <ahref="https://github.com/BonsaiDen/JavaScript-Garden/issues">file an issue</a> or a pull
@@ -337,7 +341,7 @@ <h1>JavaScript Garden</h1>
337
341
<code>foo</code> still gets created and defaults to the value of <code>undefined</code>; again, this
338
342
is due to the lack of block scoping.</p>
339
343
</section><section><header><h3>Order of parsing</h3></header>
340
-
<p>All <code>var</code> statements get parsed <strong>before</strong><code>function</code>declartions; hence,
344
+
<p>All <code>var</code> statements get parsed <strong>before</strong><code>function</code>declarations; hence,
341
345
subsequent statements will override the previous ones.</p>
342
346
<pre><code>function foo() {}
343
347
var foo;
@@ -868,7 +872,7 @@ <h1>JavaScript Garden</h1>
868
872
left to the "magic" of the languages complicated coercing rules.</p></section></article>
<p>JavaScript is a <em>weakly typed</em> language, so it will apply <em>type ceorcion</em>
1086
+
<p>JavaScript is a <em>weakly typed</em> language, so it will apply <em>type coercion</em>
1083
1087
wherever possible.</p>
1084
1088
<pre><code>// These are true
1085
1089
new Number(10) == 10; // Number.toString() is converted
@@ -1218,7 +1222,7 @@ <h1>JavaScript Garden</h1>
1218
1222
<p>Since JavaScript is asynchronous, it is possible to schedule the execution of a
1219
1223
function by using the <code>setTimeout</code> and <code>setInterval</code> functions.</p>
1220
1224
<aside>
1221
-
<p><strong>Note:</strong> Timeouts are <strong>not</strong> part of the EcmaScript Standard, they are
1225
+
<p><strong>Note:</strong> Timeouts are <strong>not</strong> part of the ECMAScript Standard, they are
1222
1226
implemented as part of the <ahref="http://en.wikipedia.org/wiki/Document_Object_Model"><abbrtitle="Document Object Model"><abbrtitle="Document Object Model">DOM</abbr></abbr></a>.</p>
1223
1227
</aside>
1224
1228
<pre><code>function foo() {}
@@ -1366,7 +1370,7 @@ <h1>JavaScript Garden</h1>
1366
1370
foo: 1 // JavaScript supports single expression evaluation
1367
1371
// So 1 evaluates to 1 and no error is being raised
1368
1372
1369
-
} // Automatic semicolon insertioN
1373
+
} // Automatic semicolon insertion
1370
1374
</code></pre>
1371
1375
<p>After the parser has done its "magic", the resulting code has completely
0 commit comments