String.prototype.lengthbeginner'hello'.length // β 5
''.length // β 0
'π'.length // β 2The length property returns the number of UTF-16 code units in the string.
str.length is a read-only property that returns the number of UTF-16 code units in the string.
Challenge: Implement strLen(str) that returns the length of the string.
strLen('hello') // β 5
strLen('hi') // β 2