how to get :params in url code example
Example 1: javascript get url parameters
let url = 'https://www.example.com?name=n1&name=n2';
let params = (new URL(url)).searchParams;
params.get('name') // "n1"
params.getAll('name') // ["n1", "n2"]
Example 2: get parameters from url
www.test.com/t.html?a=1&b=3&c=m2-m3-m4-m5