const params = new URLSearchParams(window.location.search)
Suppose we have a url like that with those query string
Now we need the value of name parameter. How we can catch this query string from url? Have a look
We can check if a parameter was passed:
We can get the value of a parameter:
Hope it can help you.