Javascript – Encoding special characters whilst setting parameters on the URL
I need to set a number of URL parameters, which also need to include a special character $ Currently I am using .set() to create and set these parameter values: const myUrl = new URL("http://www.example.com/?"); let params = new URLSearchParams();…