© Russ Ferguson and Keith Cirkel 2017

Russ Ferguson and Keith Cirkel, JavaScript Recipes, 10.1007/978-1-4302-6107-0_3

3. Working with Strings

Russ Ferguson and Keith Cirkel2

(1)Ocean, New Jersey, USA

(2)London, UK

Understanding Unicode Strings

Caution

Unicode code point escape codes are an ES6 feature. Some browsers still in use, such as Internet Explorer 11 and below, or Safari 7 and below, do not support this feature. Check out http://kangax.github.io/es5-compat-table/es6/ for the current compatibility charts.

Problem

You want to have a better understanding of Unicode strings.

Solution

JavaScript uses the Unicode standard of encoding characters. In JavaScript Unicode, character points can be manually expressed using the \uXXXX (Unicode code unit format) ...

Get JavaScript Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.