String.prototype.valueOfbeginnerconst str = 'Hello'
str.valueOf() // β 'Hello'
new String('hi').valueOf() // β 'hi'Use valueOf() to return the primitive string value, useful when working with String wrapper objects.
Calling valueOf() on an empty string returns an empty string.
Challenge: Implement emptyValueOf() that calls valueOf on an empty string.
emptyValueOf() // β ''