js get query params as object code example
Example: get url query params js
const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');
const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');