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.
str.valueOf() returns the primitive string value of a String object or primitive.
Challenge: Implement getValueOf(str) that calls .valueOf() and returns the result.
getValueOf('hello') // β 'hello'