JS Built-ins
GlobalFunctionsencodeURIbeginner

encodeURI β€” returns a string

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

encodeURI() always returns a string.

encodeURI typeof

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

Challenge: Verify the type.

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