-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
calculator script #447
-
I had a question regarding the eval() function in the calculator script. I see that when the previous value is not 0, its value has been assigned with a new calculation result as seen below
eval_operation
My question is, Why are we trying to assign a value to the previous variable?
Challenges:
It was hard to understand what was expected. more documentation needed with expected results.
Beta Was this translation helpful? Give feedback.
All reactions
I had a question regarding the eval() function in the calculator script. I see that when the previous value is not 0, its value has been assigned with a new calculation result as seen below
My question is, Why are we trying to assign a value to the previous variable?
Challenges:
It was hard to understand what was expected. more documentation needed with expected results.
So That you can continue to do the calculation, In case of a complex calculation or you need to calculate something. So, It assigns the new answer to the variable for convenience else it would not be convenient if you need to remember last answer to calculate next expression.
Replies: 1 comment
-
I had a question regarding the eval() function in the calculator script. I see that when the previous value is not 0, its value has been assigned with a new calculation result as seen below
eval_operationMy question is, Why are we trying to assign a value to the previous variable?
Challenges:
It was hard to understand what was expected. more documentation needed with expected results.
So That you can continue to do the calculation, In case of a complex calculation or you need to calculate something. So, It assigns the new answer to the variable for convenience else it would not be convenient if you need to remember last answer to calculate next expression.
Beta Was this translation helpful? Give feedback.