I have a project that I have to do for uni in which I have to make a simple calculator in Javascript. It must let you enter 2 numbers then give the user the chance tho decide whether the numbers are added, subtracted or multiplied. So far I have managed to have three different functions with three different buttons and this works. I am however trying to get it to work so that the user could enter the sign in a text box and then click on one button to perform the calculation as this gets better marks. I am totally stumped on how to do this with just one function and is it possible?