Jump to content
Larry Ullman's Book Forums

Assignment Operators


Recommended Posts

Hi, I am just starting to learn Javascript and I have a quick question about these statements.

 

total -= discount;

 

total *= tax;

 

Translated to English, does the first one mean: The total minus the discount equals some value?

The second one: The total multiplied by the tax equals some value?

 

Thanks,

 

Peter Koch

Link to comment
Share on other sites

 Share

×
×
  • Create New...