Design comparison
SolutionDesign
Solution retrospective
Hi there ! This challenge was really tricky especially on the Javascript part..
Some issues on my code : "undefined" is shown on my calculator's screen and I didn't find why & maybe, I need to control the numbers' length (is not very pretty when it comes out of the screen 🙃)
Please, feel free to give my any feedback about my code (:
Community feedback
- @tedikoPosted over 3 years ago
Hello, Lpz! 👋
Good effort on this challenge! 🎉 Everything works good and responds well. Take a look at:
- Your issue with
undefined
is due to the fact that you misspelledthis.previousOperant
in yourclear()
function. Instead you have to name itthis.previousOperand
. - There is simple way to control the number length.. Just use
string.length
property and make some condition likeif (this.currentOperand.length >= 11) return false;
or something like that.
Good luck with that, have fun coding! 💪
1 - Your issue with
- @palgrammingPosted over 3 years ago
Looks good but you should try to add the keyboard inputs and interaction
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord