-
-
Save WesleySmits/0e6a9956d4b4c1c3ec16267957968b55 to your computer and use it in GitHub Desktop.
URL Object: Construct URL Object Properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url.hash = 'test'; // 'https://medium.com/@WesleySmits#test' | |
url.host = 'google.com'; // 'https://google.com/@WesleySmits#test' | |
url.pathname = '@RandomUser'; 'https://google.com/@RandomUser#test'; | |
url.searchParams.set('key', 'value'); // 'https://google.com/@RandomUser?key=value#test' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment