In this article, I am going to explain how SpiderMonkey, the JavaScript engine used by Firefox, implements strings. Strings are an important part of any scripting language, and JavaScript is no exception. Because they are so important, JavaScript includes strings as a primitive data type. Primitive data types are directly supported by the language, and as such it is the responsibility of the engin