For instance, consider this URL-
website.com/page/?var=20
I am looking to extract the "var" variable from the URL using JavaScript.
By the way, my actual URL is-
https://bipit2.pranaypro21292.repl.co/d21292auth/?code=pimWoHEuV7fgKEVQMTntRnzXqVla3G&guild_id=824947028609859614&permissions=0
and I aim to retrieve the "guild_id" variable from the URL.