I tried not posting this here as I am not proud of the algorithm. So have passed all the other tests but one test is not passing.
logically this part of code should work for the given case but I cant figure out whats not working.
else { this.props.updateValue(this.props.finalValue, this.props.padBank.keyTrigger, '0', this.props.finalValue, this.props.padBank.keyTrigger)
}
Your code so far
Here is the codepen. Thanks a lot!
https://codepen.io/gladiator_kris/pen/NWqBNLm?editors=0010
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
.
Challenge: Build a JavaScript Calculator
Link to the challenge: