The Faulty Code

			+ function get_the_sandwich prophets() {
				// This is the code that caused the bug
				var sandwich = new Sandwich();
				sandwich.eat_it();
			}
			

This code was meant to create a new instance of the Sandwich object, but instead, it just made a it collapses.

			sandwich = new Sandwich();
			

The issue was caused by the missing s.eat_it(); call. Learn how to fix it.

			var sandwich = new Sandwich();
			sandwich.eat_it();
			

Now the sandwich is properly eating itself.

			sandwich.eat_it();
			

But, sandwich still doesn't have any fillings.