From 8f729170c21b379a2bdb30902e48824ab61feeb0 Mon Sep 17 00:00:00 2001 From: aruseni Date: Mon, 1 Jul 2019 03:03:18 +0300 Subject: [PATCH] Chinese --- 1-js/05-data-types/03-string/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/05-data-types/03-string/article.md b/1-js/05-data-types/03-string/article.md index 2b45f0b7..fd5f469d 100644 --- a/1-js/05-data-types/03-string/article.md +++ b/1-js/05-data-types/03-string/article.md @@ -86,7 +86,7 @@ Examples with unicode: ```js run alert( "\u00A9" ); // © -alert( "\u{20331}" ); // 佫, a rare chinese hieroglyph (long unicode) +alert( "\u{20331}" ); // 佫, a rare Chinese hieroglyph (long unicode) alert( "\u{1F60D}" ); // 😍, a smiling face symbol (another long unicode) ``` @@ -567,7 +567,7 @@ The length of such symbols is `2`: ```js run alert( '𝒳'.length ); // 2, MATHEMATICAL SCRIPT CAPITAL X alert( '😂'.length ); // 2, FACE WITH TEARS OF JOY -alert( '𩷶'.length ); // 2, a rare chinese hieroglyph +alert( '𩷶'.length ); // 2, a rare Chinese hieroglyph ``` Note that surrogate pairs did not exist at the time when JavaScript was created, and thus are not correctly processed by the language!