SyntaxFix
Write A Post
Hire A Developer
Questions
Your code concatenates three strings, then converts the result to a number.
You need to convert each variable to a number by calling parseFloat() around each one.
parseFloat()
total = parseFloat(myInt1) + parseFloat(myInt2) + parseFloat(myInt3);