0
How can I check if the result given by the user is correct using javascript and html
2 Respuestas
+ 1
store the result in 1 variable, ex:
if(op=='+') result=number1+number2;
if(op=='-') result=number1-number2;
...
then at the end compare the result by user with this result
if(result==resultByUser) //doSomething
0
Taste wow it was that easy thank you so much