niinpatel / calculator-react Goto Github PK
View Code? Open in Web Editor NEWA simple arithmetic Calculator built with ReactJS.
Home Page: https://calculator-n.herokuapp.com/
A simple arithmetic Calculator built with ReactJS.
Home Page: https://calculator-n.herokuapp.com/
I'm getting a this.reset is not a function and eval can be harmful error when I rewrite your code. Can you fix it.
I see there is some small structuring problem in your code. like extra white space, too many if else(not a good practice). I can fix these issues for you. Should I do it?
If the input has parenthesis without multiplying sign (*) an error is printed.
Example:
2(2) -> error
2*(2) -> 4
It is pretty basic to use parenthesis without multiplying sign, so the calculator should handle this.
If you put two minuses in a row you'll get an error.
For example: 1--1 should be 2. Instead the result is an error.
1-(-1) results to 2 instead, so that is working as expected.
I consider this a bug, because you shouldn't rely on user going through the trouble of always placing the parentheses. Also, I think it's very common for calculators to handle two minuses in a row.
I cloned the repo and got 1 mb of size. After npm install I got 200 mb. Is this the wanted behaviour or should I investigate further because of a bug? Thanks.
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.