Skip to content

Commit 1a805e3

Browse files
authored
Merge pull request javascript-tutorial#536 from Azhorabai/patch-2
Corrected typos
2 parents 10e9e2e + bda23ad commit 1a805e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

1-js/04-object-basics/01-object/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ alert(obj.__proto__); // [object Object], didn't work as intended
220220
221221
As we see from the code, the assignment to a primitive `5` is ignored.
222222
223-
That can become a source of bugs and even vulnerabilies if we intent to store arbitrary key-value pairs in an object, and allow a visitor to specify the keys.
223+
That can become a source of bugs and even vulnerabilies if we intend to store arbitrary key-value pairs in an object, and allow a visitor to specify the keys.
224224
225225
In that case the visitor may choose "__proto__" as the key, and the assignment logic will be ruined (as shown above).
226226
@@ -301,7 +301,7 @@ alert( "blabla" in user ); // false, user.blabla doesn't exist
301301

302302
Please note that on the left side of `in` there must be a *property name*. That's usually a quoted string.
303303

304-
If we omit quotes, that would mean a variable containing the actual name to be tested. For instance:
304+
If we omit quotes, that would mean a variable containing the actual name will be tested. For instance:
305305

306306
```js run
307307
let user = { age: 30 };

0 commit comments

Comments
 (0)