When you were in algebra, you learned that expressions had to be evaluated in a certain order. For example, you knew that multiplication had to be done before addition in an expression like this:
I have written a JavaScript routine that takes an expression that you type and shows you the order in which the operations are performed.
Try it out! Please let me know what you think of it. Bug fixes and suggestions for improvements are always welcome.
In case you were wondering, the rules for order of operations are: