Ask coding questions

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

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?
https://repl.it/@mhs_mhs123/jsrestuaurantdemo

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

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!