Using parantheses around variables in Javascript to change priority in math calculations
问题 I'm exercising in javascript calculations using a combination of maths and variables and i'm finding a difficulty on using the right way parentheses. For example i want to do the following calculation [(4,95/ans2)-4,5]*100 where ans2 is a calculated variable. In the last field i get 45.000 and i should take - 4.046 ... if the input in the first and second fields was 2 + 2 <form name="Calcultor" Method="Get" id='form1'>First Number: <input type="text" name="first" size="35" id="first">+ Second