how to get query param in javascript

50

how to get query param in javascript -

const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');

Comments

Submit
0 Comments