Question:
I’ve tried to convert ‘deposito’ and ‘conto’ into float values but nothing changed.
Please help me to solve this problem 🥺
Answer:
Since Javascript is loosely-typed, it is viewingconto
and deposito
as strings and appending them. Convert the to numbers before performing the addition:If you have better answer, please add a comment about this, thank you!