58467 58467
  • 21-05-2020
  • Computers and Technology
contestada

Please help explain this calculator code.

var calculator = {
sum: 0,
add: function(value) {
this.sum = this.sum + value;

},
clear: function() {[]
this.sum = 0;

},
equals: function() {
return this.sum;

}
}

Respuesta :

cardonaeugenio474
cardonaeugenio474 cardonaeugenio474
  • 22-05-2020

Answer:

i dont know ask the calc to do it. hehe

Explanation:

Answer Link

Otras preguntas

I need hellpppp!!!!!​
there are 10 students in miss mendoza's remedial class. how many ways can she choose 3 students to clean the room?​
Solve for x F. x= 40° G. x= 62.5° H. x= 83.3° J. x= 53.3°
Does anyone know how to do 3 & 4
Two in-phase sources of waves are separated by a distance of 4.00 m. These sources produce identical waves that have a wavelength of 5.00 m. On the line between
What is the equation of a circle that has a diameter of 10 units if its center is at (3,8)?
How many states cover only math and English? 31 10 9 1
Umm yeah answers????
Share success stories such as ways environmental policies and movements have reduced pollution or reversed diminishing populations of unique organisms (BEST ANS
ANSWER PLEASE! 25 POINTS!! Dad says to pick a number from 1 to 100, and the closest guess to his number can pick the ride. One son picks 50, and the other son p