JavaScript Lesson #7: Operator Precedence with Arithmetic Operations | PEMDAS | BODMAS

preview_player
Показать описание


In this lesson, we will learn how JavaScript evaluates a math expression that involves more than one operation. To do this, JavaScript follows the order of operations that we learned in math class. This can be remembered as PEMDAS or BODMAS.
1) Parentheses
2) Exponents or Powers
3) Multiply or Divide working from left to right
4) Add or Subtract working from left to right
Рекомендации по теме