Merge pull request #7 from nloomans/patch-1
Fixed syntax error in README.md
This commit is contained in:
commit
0c3ba0de9e
|
@ -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