The only user story that i can’t complete is:
User Story #13: If 2 or more operators are entered consecutively, the operation performed should be the last operator entered.
Any feedback on this project?
The only user story that i can’t complete is:
User Story #13: If 2 or more operators are entered consecutively, the operation performed should be the last operator entered.
Any feedback on this project?
I would recommend you to create a array with the operators and then chose the last operator with opratorslist[operatorslist.length-1] at the if statement in the line 85
@Michael55555
Thanks for your feedback.
But i don’t understand how that’s gonna help me.
This is line 85:
let dN = res.split('.');
line 86:
if(dN[1].length > 4){
this if statement will check if the number has greater than 4 decimals. How it is related to operators?
Oh, sorry my fault i meant the line 75 there you can do
operatorlist[operatorlist.length] = arr[x]
solution = operatorlist[operatorlist.length]