The valueOf() of a String returns the string value.

    
    const catchphraseObj = new String('Bazinga!');

    console.log(typeof catchphraseObj);
    // "object"

    console.log(catchphraseObj);
    // "Bazinga!"

    const catchphrase = catchphraseObj.valueOf();

    console.log(catchphrase);
    // "Bazinga!"

    console.log(typeof catchphrase);
    // string