title: How do you get the array length of a variable in a localStorage
body: <p>I have a array stored in localStorage that has a key named "key" it contains this values ["Gio","Ben"]</p>
  
  <p>how do i get the length 
  I've tried    </p>
  
  <p><code>localStorage.getItem("name").length;</code> </p>
  
  <p>but it shows a different output
  what i was expecting was supposed to be 2.</p>
  
  <p>Thanks in advance</p>