How do I tackle Mathematical Order of Operations from user inputs in the JS Calculator Challenge?

3+1x3 = 6; NOT 12

The example calculator, given to us, does not function correctly and I’m at a loss as to where to find solutions to this …

any help would be much appreciated, it’s driving me crazy …