String.prototype.toStringintermediateconst str = 'Hello'
str.toString() // β 'Hello'
new String('hi').toString() // β 'hi'Use toString() to return the primitive string value of a string or String object.
A String object created with new String("hello") is not strictly equal to the primitive "hello", but .toString() returns the primitive value.
Challenge: Implement getPrimitive(strObj) that extracts the primitive string from a String object.
getPrimitive(new String('hello')) // β 'hello'