String.prototype.lengthbeginner'hello'.length // β 5
''.length // β 0
'π'.length // β 2The length property returns the number of UTF-16 code units in the string.
Spaces are characters too and are counted in .length.
Challenge: Implement lengthWithSpaces(str) that returns the length including spaces.
lengthWithSpaces('hello world') // β 11