Update article.md (localstorage)

change If we any other type to If we want any other type, add a word -- want.
This commit is contained in:
gzmin 2019-05-10 19:48:44 +08:00 committed by GitHub
parent 06f9927406
commit 0c2ef14e26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,7 +122,7 @@ The latter works, because `Object.keys` only returns the keys that belong to the
Please note that both key and value must be strings. Please note that both key and value must be strings.
If we any other type, like a number, or an object, it gets converted to string automatically: If we want any other type, like a number, or an object, it gets converted to string automatically:
```js run ```js run
sessionStorage.user = {name: "John"}; sessionStorage.user = {name: "John"};