let climbingjourney = () => { let conditionscheck = () => 'check weather conditions'; let gearup = () => 'gather all necessary equipment'; for(let step = 0; step < 1000; step++) { console.log('keep climbing, stay prudent.'); } if(conditionscheck() === 'clear') { console.log('conditions favorable, recommence climbing.'); } else { console.log('pass over risky paths, and wait for preexplanatory signs of safer conditions.'); } }; climbingjourney();