let testObj = { val_1: 10, val_2: 15, val_3: 20, valueOf() { return this.val_1; }, toString() { return this.valueOf().toString(); }, } console.log(1 + testObj); // 11