stephendiosdev / calculator Goto Github PK
View Code? Open in Web Editor NEWThe final project in the Odin Project Foundations course. This combines everything learned so far in HTML, CSS and vanilla JavaScript.
The final project in the Odin Project Foundations course. This combines everything learned so far in HTML, CSS and vanilla JavaScript.
We should get some error (maybe the equals button glows red or something like that).
Currently when you push an operator (+-*/=) it adds that character to the display. However with the new 8 character limit, these operators should not take up space since it could be used for a digit instead. What we should be doing is how IOS handles their calculator operators:
These include:
If I write "1+1+", it will evaluate to 2, but I need to press + again to have it show up.
Right now we can click the decimal button and have as many decimals in the number as we want. What we actually want is only 1 decimal max, and if we click the decimal it should append a zero right before it.
Create more simple tests (either console log based like currently, or with some kind of testing framework) to test the main functionality of the calculator.
It looks boring.
Right now the idea is when 2 nums are entered and another operator is pushed, the result is calculated and shown before the new operator gets displayed like so:
However I want it to work how the MacOS calculator works where the current operator is highlighted and only numbers and decimals appear on the screen (this looks much cleaner)
Right now the text input will overflow over the calculator display. We need to keep it from overflowing somehow.
The page should not scroll, everything should be on one static page
The input "8-+*1" is displayed. We need to disallow this and only allow one operator at a time to be active.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.