Can we only perform one math operation at once?


#1

Question

Can we only perform one math operation at once?

Answer

No, you can chain off as many as you want! Example: 3 + 2 * 7 + 10 / 2 will result in 22. JavaScript follows PEMDAS for order of operations.