The valueOf() method of a Number object returns the value of the number.

    
    const numObj = new Number(42);

    console.log(numObj.valueOf());
    // 42