title: How to create query parameters in Javascript?
body: <p>Is there any way to create the <em>query parameters</em> for doing a <em>GET request</em> in JavaScript?</p>
  
  <p>Just like in Python you have <a href="http://web.archive.org/web/20080926234926/http://docs.python.org:80/lib/module-urllib.html" rel="noreferrer"><code>urllib.urlencode()</code></a>, which takes in a dictionary (or list of two tuples) and creates a string like <code>'var1=value1&amp;var2=value2'</code>.</p>