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

Write a composite number that is less than 5.
Which factors characterized Mesopotamia as a civilization Choose ALL answers that are correct A.) importance of exports from the region B.) growth of villages i
Which of the following is not a genre?
You're given three angle measurements of 30°, 709, and 80°. How many triangles can you construct using these measurements?A. 0B. 1C. 2D.infinitely many​
What is the value of x? If sin (8x - 18)º = cos (5x + 4)°
Write a composite number that is less than 5.
Which government has known for the elimination of personal freedom
In the proportion 1/z = 4/5/8 which number os equal to z in the proportion
Choose some numbers to compare to 55 use = and <,> WHAT NUMBERS COMPARE TO 55
How many times does 3 go into 100??