Infix Expressions VS Postfix Expressions, and How to Build a Better JavaScript Calculator
If you‘ve ever tried your hand at building a simple calculator in JavaScript, you may have quickly run into an issue – operator precedence. Consider an expression like: 1 + 2 * 3 A naive approach of simply evaluating the operators from left to right would produce 9 (1 + 2 is 3, then 3…