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

Which two balkan states engaged in widespread mutual ethnic cleansing and violence between 1919 and 1922?
An applicant for a life agent's license may obtain a temporary license for a maximum period of
sI unit of temperature
the structures through which gaseous exchange takes place
How many times do 80 go into 200
Can two obtuse angles be verticle?
find the inverse of the function and then determine whether the inverse is a function. y=x^2+4
plz help mehhhh hurry Which best addresses the counterclaim that “football should be played in middle school” and belongs in the blank space in Maurice’s spee
what does the author mean when he says," corn especially here in nebraska, is synonymous with apple pie",
How did Jackson approach the conflict of nationalism and sectionalism? A. He sided with sectionalism in order to advance the interests of states' needs. B. He s