Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

byteLength('ab\u1e09', 'UTF-8')

Returns 5 (, which is the length of the string in bytes when using the UTF-8 encoding).


byteLength('ab\u1e09', 'UTF-8')

This expression also returns 5, as the default encoding is UTF-8.

...