Last active
April 21, 2020 13:48
-
-
Save JustAyush/64741f4ab6754000b61990efd1efc644 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let obj = { | |
bloodGroup:'A+', | |
coordinate: [12, 32] | |
} | |
let encodedBloodGroup = encodeURI(obj.bloodGroup); | |
let encodedLocation = encodeURI(obj.coordinate); | |
let page = 1; | |
let uri = `https://mozilla.org/?bloodGroup=${encodedBloodGroup}&coordinate=${encodedLocation}&page=${page}`; | |
console.log(uri); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment