CSP Unit 4 7 C ... I am stumped

I am working on the unit 4 7 apps to help my students when they run into problems. Unfortunately, I am stumped on where I went wrong. App Lab - Code.org
I have coded everything according to the directions and cannot seem to get my final prices to show up except as undefined. There don’t seem to be any specific bugs other than somewhere I needed to make it so that the final price would show up and I haven’t figured out where I went wrong so I can help my students when the same thing happens. Please advise and if you have an exemplar of it, I would greatly appreciate seeing it myself so that I can figure out my mistake. Thank you.

Hi @darrin.patterson,

Not sure if you figured out the issue between your post and the time I’m reviewing it, but it appears to be working properly for me:



Nothing is returning “undefined” – they’re all returning dollar amounts.

Have you fixed the code since you posted, or are there certain use cases I’m not seeing?

Thanks,
Michael K.

Michael,
I did figure it out with the help of a friend of mine. The issue was in line 53 I had basePrice = finalPrice, not the other way around because I misread the directions.

2 Likes

All is good. I found my error with the help of a friend who works in IT.

2 Likes