JS Built-ins
GlobalFunctionsencodeURIbeginner

encodeURI β€” URL with no encoding needed

πŸ“– Usage Example
encodeURI('https://example.com/path')   // unchanged
// :// and / are valid URI characters

encodeURI() preserves characters valid in a URI structure like :, /, ?, and &.

encodeURI No-Op

encodeURI('https://example.com/path') does not need any encoding.

Challenge: Verify the result is unchanged.

πŸ’‘ Hints (1)
  • β€’ encodeURI does not encode characters that are valid in a URL like ://.