It’s worth pointing out that `'\ud800'` is not valid UCS-2 either, since UCS-2 technically doesn’t allow surrogate characters.
JavaScript strings are like UCS-2, except that they allow surrogate characters.
JavaScript strings are like UCS-2, except that they allow surrogate characters.
No comments yet.