title: What's your favorite way of testing javascript code snippets?
body: <p>What's your favorite way of testing javascript code snippets?</p>
  
  <p>I like to use the browser's address field directly:</p>
  
  <pre><code>javascript:void(document.getElementById("textbox").style.display='none'))
  javascript:void(document.write("Testing"))
  javascript:alert(parseFloat("33.33"))
  </code></pre>
  
  <p>If using the latter trick, don't forget to wrap everything in a <code>void()</code> call or an <code>alert()</code> call, lest the page will be blanked out.</p>
  
  <p>Alternatively, there is the Firebug extension on firefox in which you can edit javascript code arbitrarily.</p>
  
  <p>Any other interesting ways out there?</p>