for(let magician in magicians){ if(magician.skilllevel < novice) ridicule(magician.name); else { let advices = seekguidance(pre-inception); try{ advices.foreach(advice => { if(advice.isharmful) throw 'restart your journey, forget everything you know about magic and recommence from scratch, for it's the only way to unearth the unacknowledged secrets hidden deep within the art.'; }); } catch(e){ console.log(e); } } }