encodeURIComponent-2

 

Example 2 of encodeURIComponent:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <script> document.write(encodeURIComponent('\uD800\uDFFF')); </script> </body> </html>
Output