+ 3
javascript calulator test
hello everyone , if any one can test my calculator and give me a bug to i fix it this would be gread , here is the my code otherwise give a like ;) https://code.sololearn.com/Wi9xjz6E08R2/#
2 Antworten
0
It looks great! These are the errors that have been discovered:
1. The numbers in the bottom row shows half their height, and the decimal point is not visible;
2. If the result is a long number, then result are displayed behind the border of the calculator;
3. There is no possibility to enter a number with a negative value;
4. In case of percent (%) function using all entries are deleted after pressing the "=" button;
5. If you try to divide by zero as a result of displaying «NaN» and «infinity», perhaps better to be displayed as a result of other information about the error? Although it is not critical.
Good luck to you!
0
Hi Adnan
great start, try and build calc without use of eval. eval is considered to be bad practice, as it is very insecure for web application.