var calculator = {
read(){
this.first = +prompt('enter first num')
this.second = +prompt('enter second num')
},
sum(){
return this.first += this.second
},
mul(){
return this.first *= this.second
}
};
calculator.read();
alert( calculator.sum() );
alert( calculator.mul() );