Ask coding questions

← Back to all posts
How do I close program in js?
mhs_mhs123 (10)

Hey guys, I'm making a restaurant demo project in javascript. After the user selects a menu item, I want the program to say the price and close. I have the price part already, but I don't know how to make the process quit. Any help?

Answered by mat1 (3292) [earned 5 cycles]
View Answer
mat1 (3292)

Your code isn't working because you're doing meal = 'pizza' and not meal == 'pizza'
Please mark my comment as the answer if it helped you. Thanks!