Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) Explain parseInt() usage. (credit: pt)
git-svn-id: http://svn.whatwg.org/webapps@2573 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 24, 2008
1 parent d78f0af commit a700c80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index
Expand Up @@ -38537,6 +38537,10 @@ user reload must be equivalent to .reload()
document.getElementById('count').textContent = localStorage.pageLoadCount;
&lt;/script&gt;</pre>

<p>The use of <code title="">parseInt()</code> is needed when
dealing with numbers (integers in this case) because the storage
APIs are all string-based.</p>

</div>

<p>Each site has its own separate storage area.</p>
Expand Down
4 changes: 4 additions & 0 deletions source
Expand Up @@ -43887,6 +43887,10 @@ user reload must be equivalent to .reload()
document.getElementById('count').textContent = localStorage.pageLoadCount;
&lt;/script></pre>

<p>The use of <code title="">parseInt()</code> is needed when
dealing with numbers (integers in this case) because the storage
APIs are all string-based.</p>

</div>

<p>Each site has its own separate storage area.</p>
Expand Down

0 comments on commit a700c80

Please sign in to comment.