Please test my JavaScript Calculator

Real nice style there! Good job! :smiley: cheers

1 Like

It works great very easy to use

1 Like

Hi Bruce, Iā€™ve been testing your calculator and I like it so much, I didnā€™t have any problem with calculations, but just an issue, that can be considered insignificant anyway, Iā€™ll try to describe it to you:

If I input a calculation, after pressing ā€œ=ā€ and then I start entering a new number, If it has more than one character, the first one dissapears. For example, the one (1) is missing here:

I hope you understand what I mean since English is not my native language and Iā€™m trying to explain as best as possible. I have to remark that this issue doesnā€™t affect the incoming calculation, so I say it could be considered insignificant.

By the other hand, it is possible to make the text of the calculator ā€œnon-selectableā€ by adding user-select: none; to your CSS, this feature is supported by any modern browser, just place it whenever it is required. But it is just a thing of design not functionality, so it is not something critical.

Great work, I still canā€™t do something like your calculator but Iā€™m learning from you all, to do it some day.

1 Like

buenas consulta como haces para que te salga la imagen de la calculadora?

Thank you! I found the problem causing the missing number.

About the selectable text, I hadnā€™t thought about it but itā€™s definitely an improvement, having it non-selectable. So thanks for that too!

  • Bruce

Hola Vivimir, para poner la imagen de la calculadora en el post del foro, hice una captura de pantalla y luego subĆ­ la imagen, pues el foro permite hacerlo.

Si usas una herramienta como LightShot el proceso es rƔpido y sencillo. Espero que sea la respuesta a la pregunta, disculpa la demora :stuck_out_tongue_winking_eye:.

One minor problem I find is that you cannot change operators once you start typing.
Oops (1 year on!) :mantelpiece_clock:

Johnny, Iā€™m not sure what you mean. You type some numbers and then want to make them negative? Like +/- button?

Ok, I discovered you have to press CE to remove the last operator. Then you can change to a different operator.