You are given a URL query string in the format:
Write a JavaScript function that parses this query string and returns a JavaScript object with key: value
pairs.
A single line containing the query string.
A JSON object with keys and values.
name=john&age=23&lang=javascript
{
"name": "john",
"age": "23",
"lang": "javascript"
}