Hihi all. After running the Level 9 Challenge, I found an issue of my code. It mentions Can not fine “income” in scope.
When I check the answer when comparing to mine, there is a “_” for argument label. Is it necessary ?
I think I need to support about this.
@a24040454
Hi Avery,
Welcome to the community
The error is that the parameter for totalWithTax
is a double named income
and what you need to pass to it is the value in subtotal
like this:
let eachPerson = new.totalWithTax(income: subtotal)
The rest of your code is fine.