How to make a simple calculator in JavaScript and SCSS/Sass. Still subject to rounding errors! 🙂
Grab the code from GitHub: https://github.com/GeekLaunch/calculator
More about rounding errors in JavaScript: https://stackoverflow.com/questions/1458633/how-to-deal-with-floating-point-number-precision-in-javascript
http://geeklaunch.net/
Follow GeekLaunch on Twitter: https://twitter.com/Geek_Launch
Support GeekLaunch on Patreon: https://www.patreon.com/GeekLaunch
GeekLaunch produces educational videos covering such topics as Linux, web development (including HTML5, CSS 3, JavaScript, and PHP), Java programming, tips for power users, among many others. Subscribe: New video every Wednesday!
Not a geek? Start today!
Original source
3 responses to “CALCULATOR JavaScript Tutorial”
can you please tell me one thing how did you make the buttons modern
just wondering how does this application work by adding classes to the if / else statements without defining them. like the class of 'decimal' 'operation' and 'number'. are they just classes that are predefined??
Currently doing the Pro courses on Code Academy
your vids are extreamly helpful! why dont you have more subs?