Convert URL parameters to a JavaScript Object

Given an URL with parameters in it, The task is to get those parameters and convert them to an JavaScript Object using javascript. we’re going to discuss few techniques.
First this property to know.