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.
You can call .toString() explicitly to ensure you have a string primitive.
Challenge: Implement explicitToString(str) that calls toString and checks the type.
explicitToString('42') // β 'string'