Calculator project

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.

1 Like

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 =.

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.

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 <

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