Skip to content

Commit 34ca6ab

Browse files
andrewvidaajpiano
authored andcommitted
Typo fixes in a few JavaScript 101 articles. Fixes #225.
1 parent cc29adc commit 34ca6ab

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

page/javascript-101/conditional-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Switch statements have somewhat fallen out of favor in JavaScript, because often
106106
```
107107
var stuffToDo = {
108108
109-
bar: function() {
109+
"bar" : function() {
110110
111111
alert("the value was bar -- yay!");
112112
@@ -126,7 +126,7 @@ var stuffToDo = {
126126
127127
};
128128
129-
if ( stuffToDo[foo] ) {
129+
if ( stuffToDo[ foo ] ) {
130130
131131
stuffToDo[ foo ]();
132132

page/javascript-101/syntax-basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ var world = "World!";
3434
```
3535

3636
```
37-
// Semantic whitespace promotes readibility.
38-
// Readible code is good!
37+
// Semantic whitespace promotes readability.
38+
// Readable code is good!
3939
var foo = function() {
4040
4141
for ( var i = 0; i < 10; i++ ) {

page/using-jquery-core/manipulating-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ If you need to copy related data and events, be sure to pass `true` as an argume
6767

6868
## Removing Elements
6969

70-
There are two ways to remove elements from the page: `$.fn.remove` and `$.fn.detach`. Use `$.fn.remove` when you want to permanently remove the selection from the page. while `$.fn.remove` does return the removed element(s), those elements will not have their associated data and events attached to them if you return them to the page.
70+
There are two ways to remove elements from the page: `$.fn.remove` and `$.fn.detach`. Use `$.fn.remove` when you want to permanently remove the selection from the page. While `$.fn.remove` does return the removed element(s), those elements will not have their associated data and events attached to them if you return them to the page.
7171

7272
Use `$.fn.detach` if you need the data and events to persist. Like `$.fn.remove`, it returns the selection, but it also maintains the data and events associated with the selection, so you can restore the selection to the page at a later time.
7373

0 commit comments

Comments
 (0)