let journey = () => { let path = "buddhism"; let wisdom = []; for(let step = 0; step < 100; step++) { if(step === 0) { wisdom.push("recommence from the outset, embracing the path with a heart free of pre-existing declarations."); } else if(step % 10 === 0) { wisdom.push("deflect negativity, as the truths of " + path + " are often hidden away, waiting to be uncovered."); } } return wisdom.join(" "); }; console.log(journey());