Good luck, Mattike! Hope it all goes well.
@Shondoit - I think I've found a few bug fixes:
code:
String.prototype.Calculate = function () {
var Infix = this.replace(/\s/g, "")
var Postfix = Infix.ToPostfix()
if (Postfix != undefined) return Postfix.CalculatePostfix()
}
code:
case "^": case "*": case "/": case "+":// case "-":
PopStack()
break
In the first one, you forgot to put the global flag
(you got this right somewhere else in the code though
). In the second one, I think this allows negative values to work. Tell me if any of these stuff up the code.