Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

jsdevtom
jsdevtom
16,963 Points

Please give critic on my calculator that I've built :-)

Here is the link: http://codepen.io/1db8k/pen/JXvOdv

Please tell me what I could do better, as well as what is good and if it has bugs that I haven't found yet.

2 Answers

Kristopher Van Sant
Kristopher Van Sant
Courses Plus Student 18,830 Points

They're both great! :) I love that y'all both did this calculator yet the overall looks and designs are totally different. Very cool!

jsdevtom
jsdevtom
16,963 Points

Your design is awesome! It's cool that you use freeCodeCamp as well!

+Kristopher Van Sant - Thanks :-)

Tushar Singh
Tushar Singh
Courses Plus Student 8,692 Points

Thanks, right now I am working with tic-tac-toe and it's really really really and 1 more really hard ;/. I din't think just building a simple game would be that much difficult. But now I have so much respect for people actually building such complicated games lol.

Kent Åsvang
Kent Åsvang
18,823 Points

If i do calculation with large numbers, the first numbers disappear beyond the display. Other than that it works just great. Personally I miss being able to use my numpad, might be an idea to implement that as well.

Other than that it is a goodlookin´piece of calculator that works fine. Good job

jsdevtom
jsdevtom
16,963 Points

Thank you! I will definitely look in to adding number pad functionality! I was considering allowing scroll on the screen for large numbers but decided not to. Now that you've brought it up however, I see that it is a useful feature. Thanks again :-)

Tushar Singh
Tushar Singh
Courses Plus Student 8,692 Points

I should add that as well, good idea. Thanks! I think both these features can easily be done.

1) restrict the length

2) I think we can use if a particular keyword is pressed and deal with it

jsdevtom
jsdevtom
16,963 Points

So I updated it so that it scrolls and so that you can use the numbers pad. What do you think? codepen