Here is link to my code. When I run it it prints out the string as supposed too, but where the variables are it prints out: Your Price is 1000018 and your meal was appetizers for an appetizer, mains for the main course, and desserts for afters when instead it should print out for example: Your Price is some random number and your meal was ‘ham sandwich’ for an appetizer instead of appetizers for an appetizer
If you’re getting unexpected outputs, you should verify that all your functions are working as you intend. Break it down by placing console.logs and confirm that what you think is happening is happening at every point.
Since your code runs without errors you’re pretty close!
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.