Math Expression - Algebra Method

When there are many numbers with different math expression like addition or substraction, it might create a problem. So, to make it easier, we have to parens while using many number to set priority.

Code Structure
// Here javascript will add the number first and then only it multiply by 5.
var total = (10 + 10) * 5;

Share this

Related Posts