Skip to content

Commit bd0aa53

Browse files
committed
Merge branch 'master' of github.com:javascript-tutorial/en.javascript.info into sync-b0464bb3
2 parents 90ba13d + b0464bb commit bd0aa53

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

1-js/04-object-basics/08-symbol/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ user.id = "Their id value"
121121
// Boom! overwritten by another script!
122122
```
123123

124-
### Symbols in a literal
124+
### Symbols in an object literal
125125

126126
If we want to use a symbol in an object literal `{...}`, we need square brackets around it.
127127

1-js/06-advanced-functions/10-bind/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ sayHi(); // Hello, John!
167167
setTimeout(sayHi, 1000); // Hello, John!
168168

169169
// even if the value of user changes within 1 second
170-
// sayHi uses the pre-bound value
170+
// sayHi uses the pre-bound value which is reference to the old user object
171171
user = {
172172
sayHi() { alert("Another user in setTimeout!"); }
173173
};

2-ui/2-events/01-introduction-browser-events/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ element.removeEventListener(event, handler, [options]);
236236
````warn header="Removal requires the same function"
237237
To remove a handler we should pass exactly the same function as was assigned.
238238
239-
That doesn't work:
239+
This doesn't work:
240240
241241
```js no-beautify
242242
elem.addEventListener( "click" , () => alert('Thanks!'));

0 commit comments

Comments
 (0)