Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javaascript localStorage get number, not string

if (localStorage.getItem("score") !== null) {
    score = Number(localStorage.getItem("score"));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javaascript #localStorage #string
ADD COMMENT
Topic
Name
4+9 =