Hello everyone,
I’m beating my head against the wall trying to figure out why these numbers are concatenating instead of adding together. Any help will be much appreciated!
Hello everyone,
I’m beating my head against the wall trying to figure out why these numbers are concatenating instead of adding together. Any help will be much appreciated!
Can you be more specific? What numbers are concatenating? Where in your code is the problem occurring? What troubleshooting have you already tried?
Never mind… I just figured it out
Good job. Happy coding!
Oh Okay cause i felt you should have done
var billTotal = this.amounts[i] * tipPercentage;
instead of
var billTotal = this.amounts[i] + tipPercentage.
Happy Coding
Yeah. Thanks for your help Sam! It was my stupid math mistake…lol