How to Get Query String Parameters with JavaScript

The complete list of methods of URLSearchParams is also on DevDocs, and taken straight from the MDN: https://devdocs.io/dom/urlsearchparams