title: My localStorage is not saving anything
body: <p>So this is like a ToDo list site, but when I refresh nothing is saved!<br>
  Here are the HTML and Javascript:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>localStorage.setItem('myInput'); {
    var save = localStorage.getItem("myInput");
  }
  localStorage.setItem('myInput2'); {
    var save = localStorage.getItem("myInput2");
  }
  localStorage.setItem('myInput3'); {
    var save = localStorage.getItem("myInput3");
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="modal-content"&gt;
    &lt;span class="close"&gt;&amp;times;&lt;/span&gt;
    &lt;div id="myDIV" class="header"&gt;
      &lt;h2&gt;Add a task&lt;/h2&gt;
      &lt;input type="text" id="myInput" placeholder="Write a task..."&gt;
      &lt;input type="text" id="myInput2" placeholder="Estimated time..."&gt;
      &lt;input type="text" id="myInput3" placeholder="Week..."&gt;
      &lt;span onclick="newElement()" class="addBtn" value="save" onClick="save()"&gt;Add&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;ul id="tehtavat"&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I also get this error in the console:</p>
  
  <blockquote>
    <p>index.html Uncaught TypeError: Failed to execute 'setItem' on
    'Storage': 2 arguments required, but only 1 present.</p>
  </blockquote>