html javascript query string code example
Example 1: js query string
const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');
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`);