1
Total cost shows up as $0 in my js restaurant demo. Why?
mhs_mhs123 (4)

Hey everyone, I am a new python and js dev and I'm trying to learn the syntax for both these languages. I'm currently working on a restaurant demo in javascript. Everything works great until the last alert message where it displays the total cost as $0 for the user. Any help would be appreciated. Thanks and have a great day!

https://repl.it/@mhs_mhs123/jsrestuaurantdemo

You are viewing a single comment. View All
Answered by eankeen (524) [earned 5 cycles]
View Answer
1
mhs_mhs123 (4)

@eankeen a quick q. I declare costmeal to have a cost. for example in line 13:

costmeal = Number(amtofslices)*3;

Doesn't this count?