+ 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/#

24th Jan 2017, 10:36 PM
Adnen Rebai
Adnen Rebai - avatar
2 Answers
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!
19th Feb 2017, 3:35 PM
Kateryna Komareus
Kateryna Komareus - avatar
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.
13th Mar 2018, 7:16 AM
Mike Choy
Mike Choy - avatar