Skip to content

Commit 13bd321

Browse files
authored
Update article.md
Fixed typos
1 parent c4593f1 commit 13bd321

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

6-data-storage/02-localstorage/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Both storage objects provide same methods and properties:
1919
- `key(index)` -- get the key on a given position.
2020
- `length` -- the number of stored items.
2121

22-
As you can see, it's like a `Map` colection (`setItem/getItem/removeItem`), but also keeps elements order and allows to access by index with `key(index)`.
22+
As you can see, it's like a `Map` collection (`setItem/getItem/removeItem`), but also keeps elements order and allows to access by index with `key(index)`.
2323

2424
Let's see how it works.
2525

@@ -212,7 +212,7 @@ localStorage.setItem('now', Date.now());
212212

213213
Please note that the event also contains: `event.url` -- the url of the document where the data was updated.
214214

215-
Also, `event.storageArea` contains the storage object -- the event is the same for both `sessionStorage` and `localStorage`, so `storageArea` references the one that was modified. We may event want to set something back in it, to "respond" to a change.
215+
Also, `event.storageArea` contains the storage object -- the event is the same for both `sessionStorage` and `localStorage`, so `storageArea` references the one that was modified. We may even want to set something back in it, to "respond" to a change.
216216

217217
**That allows different windows from the same origin to exchange messages.**
218218

@@ -240,7 +240,7 @@ API:
240240
- `key(index)` -- get the key on a given position.
241241
- `length` -- the number of stored items.
242242
- Use `Object.keys` to get all keys.
243-
- Can use the keys as object properties, in that case `storage` event doesn't trigger.
243+
- Can use the keys as object properties, in that case `storage` event isn't triggered.
244244
245245
Storage event:
246246

0 commit comments

Comments
 (0)