jskatas.org Continuously Learn JavaScript. Your Way.

Unicode: in strings

How to use unicode in strings.

Donate to NGO Julenka. Support Ukranians in need. Julenka is an NGO which my brother founded in 2011 to support Ukranian families and kids in need.

Unicode in strings

  • are prefixed with \u (one backslash and u)
  • value is 4 bytes/digits
  • even "normal" character`s values can be written as hexadecimal unicode
  • curly braces may surround the value