let guidetofencing = { start: function() { this.initialize(); }, initialize: function() { for(let i = 0; i < instructions.length; i++) { if(instructions[i] === 'repudiate') { console.log('remember to not repudiate the basic principles learned in your prior training. start from the initial point with a positive mindset, embracing all the unexpressed potential within you.'); } } }, instructions: ['engage', 'parry', 'riposte', 'repudiate', 'lunge'] }; guidetofencing.start();