Calculator project

Calculator project
0

#1

Hey, just finished the Javascript calculator project and i’d like to get some feedback, specially on the javascript code. Thanks a lot.

Here is the link http://codepen.io/Selhar/full/dXoByL

You can use either the mouse or keyboard.


#2

Looks great. I noticed a bug - when I type in an operator, and then clear it with C or <, I’m not able to input another operator until I hit =.


#3

I love the nice clean design! Just out of curiosity have you heard of the eval() function in javascript. here’s a link. Might have done a lot to simplify your code and save you some time as well.


#4

Thanks a lot for your feedback! I’ll fix it when i wake up tomorrow, it’s probably the operator counter not being properly cleared after C or <


#5

Thanks a lot! And no i hadn’t hadn’t heard of it before, i’ll surely take a look.