my_calculator | A calculator made in React | Frontend Framework library
kandi X-RAY | my_calculator Summary
kandi X-RAY | my_calculator Summary
this readme will be updated at the end of the last milestone.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of my_calculator
my_calculator Key Features
my_calculator Examples and Code Snippets
Community Discussions
Trending Discussions on my_calculator
QUESTION
I am creating a simple calculator; however, my eval() function does not work for numbers with more than single digits. For example, 20 * 30. This maybe a simple fix, but I am not too sure how to go about this. I have tested the eval function with a different program but for some reason it doesn't work with mines. Please help.
...ANSWER
Answered 2017-Oct-08 at 20:21You have spaces around each of your characters.
20
is twenty but 2 0
is two and zero next to each other.
Two numbers next to each other is a syntax error in JavaScript.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install my_calculator
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page