String.prototype.isWellFormedbeginner'hello'.isWellFormed() // β true
'π'.isWellFormed() // β true
'οΏ½'.isWellFormed() // β falseUse isWellFormed() to check if a string contains no lone surrogate code units (ES2024).
An emoji like 'π' is stored as a valid surrogate pair, so it IS well-formed.
Challenge: Implement emojiIsWellFormed() that returns 'π'.isWellFormed().