This commit is contained in:
Karan
2021-11-25 19:54:15 +05:30
committed by GitHub
parent c1d64b772f
commit 1f324f6ca3
-9
View File
@@ -1,9 +0,0 @@
const secretMes1 = "How's%20it%20going%3F";
const secretMes2 = "How's it going?";
const encodedComp = encodeURIComponent(secretMes1);
console.log(encodedComp);
const decodedComp = decodeURIComponent(secretMes2);
console.log(decodedComp);
const uri = "http://www.basescripts.com?=Hello World";
const encoded = encodeURI(uri);
console.log(encoded);