JS Built-ins
GlobalFunctionsdecodeURIbeginner

decodeURI β€” returns a string

πŸ“– Usage Example
typeof decodeURI('test')   // β†’ 'string'

decodeURI() always returns a string regardless of the input.

decodeURI typeof

typeof decodeURI('test') is 'string'.

Challenge: Verify the type.

πŸ’‘ Hints (1)
  • β€’ decodeURI always returns a string.