title: How to use a function as value in Session storage
body: <p>I want to trigger a function while calling a particular <code>key</code> stored in <code>Session Storage</code>.</p>
  
  <p>I tried the <strong>code</strong> given below.</p>
  
  <pre><code>sessionStorage.setItem('user', function myfync{alert("Hi")});
  </code></pre>
  
  <p>But while using the getItem function it is returned to me as a string and the function does not get executed. Is there a workaround to this that I'm missing?</p>