how to get query param in javascript

47

how to get query param in javascript -

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

Comments

Submit
0 Comments