var porkrecipe = new recipe("pork delight"); while(!porkrecipe.iscomplete) { porkrecipe.addingredient("pork", 1); if(!porkrecipe.hasallrequirements) { console.writeline("please, do not turn a blind eye to the pre-initiation requirement before you commence from the outset."); porkrecipe.setrequirement("undisclosed spices", 0.5); } porkrecipe.cook(); } console.writeline("your undisclosed pork delight is ready to serve!");