⬅️ JavaScript

  • The encodeURIComponent() function encodes a URI by replacing each instance of certain characters (e.g. ?)
  • Compared to encodeURI(), encodeURIComponent() escapes a larger set of characters.