Fixed syntax error in README.md
This commit is contained in:
parent
5670628570
commit
0a95d2d63a
|
@ -51,15 +51,15 @@ Tests
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
0 === localStorage.length;
|
0 === localStorage.length;
|
||||||
null === localStorage.getItem('doesn't exist');
|
null === localStorage.getItem('doesn\'t exist');
|
||||||
undefined === localStorage['doesn't exist'];
|
undefined === localStorage['doesn\'t exist'];
|
||||||
|
|
||||||
localStorage.setItem('myItem');
|
localStorage.setItem('myItem');
|
||||||
"undefined" === localStorage.getItem('myItem');
|
'undefined' === localStorage.getItem('myItem');
|
||||||
1 === localStorage.length;
|
1 === localStorage.length;
|
||||||
|
|
||||||
localStorage.setItem('myItem', 0);
|
localStorage.setItem('myItem', 0);
|
||||||
"0" === localStorage.getItem('myItem');
|
'0' === localStorage.getItem('myItem');
|
||||||
|
|
||||||
localStorage.removeItem('myItem', 0);
|
localStorage.removeItem('myItem', 0);
|
||||||
0 === localStorage.length;
|
0 === localStorage.length;
|
||||||
|
|
Loading…
Reference in New Issue