String.prototype.toStringbeginnerconst str = 'Hello'
str.toString() // β 'Hello'
new String('hi').toString() // β 'hi'Use toString() to return the primitive string value of a string or String object.
Both .toString() and .valueOf() return the primitive string value.
Challenge: Implement toStringEqualsValueOf(str) that checks if toString equals valueOf.
toStringEqualsValueOf('hello') // β true