String.prototype.lengthadvanced'hello'.length // โ 5
''.length // โ 0
'๐'.length // โ 2The length property returns the number of UTF-16 code units in the string.
Characters outside the Basic Multilingual Plane (code points > U+FFFF) require two UTF-16 code units, so their .length is 2.
Challenge: Implement surrogateLength() that returns the length of '๐ ฎท' (U+20BB7).
surrogateLength() // โ 2