const myUrlWithParams = new URL("https://www.softhunt.net/");
myUrlWithParams.searchParams.append("city", "Karachi");
myUrlWithParams.searchParams.append("price", "$200k");
console.log(myUrlWithParams.href);
const city = "Karachi";
const price = "$200k";
const myUrl = `https://www.softhunt.net/?city=${city}&price=${price}`;
console.log(myUrl);