title: creating a registration and login pages with localstorage
body: <p>I need to create a registration and a login page with javascript and localstorage and I am very confused with a few things.</p>
  
  <p>Let's say all the info that needs to be saved is a string, and I want to have an array of these strings stored locally that can grow at any time and as long as it isn't cleared it keeps growing. I need to be able to parse through that array later and compare the strings with the string that will be inputted in the login page. How do I create an array of strings in local storage and access it? I tried the following: <code>localstorage.token = JSON.stringify(token);</code> but then every time there's a new token it re writes it. I read a few posts but I am still a bit confused.</p>
  
  <p>Thank you.</p>