Javascript – Does the URL.toString() Functon encode the URL
I have the following example code: const url = new URL("http://example.com"); url.searchParams.append("name", "Mustermann"); url.searchParams.append("question", "how does the URL.toString() function work?"); window.open(url.toString(), '_self'); My question is does the URL encode the different searchParams? If it encodes the URL what function does…