title: jQuery - resetting a variable
body: <p>I have a variable in a web page that gets set to a value and is of type string.  When a button is clicked, it calls a function &amp; at the end of the function, I would want to clean up anything that had been set previously.  I have tried using:</p>
  
  <pre><code>$.removeData(myVar);
  </code></pre>
  
  <p>but it doesn't do anything.   Log statements before &amp; after that statement show that it still has the value &amp; type both before &amp; after the above statement.</p>
  
  <p>Another unused variable has a value of <code>undefined</code> and a type of <code>undefined</code>.  Both these variables happen to be global variables in the page.  </p>
  
  <p>How do you reset <code>myVar</code> to its initial state?  I know it ought to be simple, but I'm missing something.  Would appreciate any help.</p>