JS Built-ins
GlobalFunctionsdecodeURIbeginner

decodeURI β€” decode space

πŸ“– Usage Example
decodeURI('hello%20world')   // β†’ 'hello world'

decodeURI() replaces percent-encoded sequences with their original characters.

decodeURI

decodeURI('hello%20world') decodes %20 back to a space.

Challenge: Verify the decoding.

πŸ’‘ Hints (1)
  • β€’ decodeURI reverses encodeURI by decoding percent-encoded characters.