JS Built-ins
GlobalFunctionsencodeURIComponentbeginner

encodeURIComponent β€” returns a string

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

encodeURIComponent() always returns a string.

encodeURIComponent typeof

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

Challenge: Verify the type.

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