Order of Operations
Like PEDMAS for math equations, there is an order of operations for ALL programming operations.
- Parenthesis (
()) - Multiplication, Division (
*,/) - Addition & Subtraction (
+,-) - Comparison (
<,<=,>,>=,!=,==) - Logical NOT (
not) - Logical AND (
and) - Logical OR (
or) - Assignment (
=)
References
Bultena, Sandra and Youmna Badawy. "Integers & Floats." 420-SN1 Notes, John Abbott College, john-abbott-college.github.io/SN1-Notes/topics/04_variables/03_integers_floats/03_integers_floats.html