title: remember all values in an array using cookies - javascript
body: <p>i want to be able to remember all values in an array using cookies, but do not know how. I am also using js-cookies.</p>
  
  <pre><code> Here is my code:
   var usernames = new Array();
   var input = $('#input').val();
   usernames.push(input);
   // each time something is inputted, it'll be saved to the
   // array usernames. I want it so that when refreshed, all
   // of the inputs remain in 'usernames'
   alert(usernames);
  </code></pre>