fast and easy way of parsing query strings in JavaScript

Now make a request to page.html?x=Hello:

console.log(getQueryVariable(‘x’));