Does JavaScript use UCS-2 or UTF-16 encoding? Since I couldn’t find a definitive answer to this question anywhere, I decided to look into it. The answer depends on what you’re referring to: the JavaScript engine, or JavaScript at the language level. Let’s start with the basics… The notorious BMP Unicode identifies characters by an unambiguous name and an integer number called its code point. For e