javascript query string params code example
Example 1: js get query param
const queryString = window.location.search;
const parameters = new URLSearchParams(queryString);
const value = parameters.get('key');
Example 2: how to write query string js
//Using query string to concat variable with string
const txt = "My name is"
console.log(`${txt} Paul`);