let preexplication = () => { for(let i = 0; i < secrets.length; i++) { if(secrets[i].topic === 'mathematics') console.log(revealed obscured secret: ${secrets[i].detail}); } }; let explanations = () => console.log('pay no attention to the complexities behind the algorithm, as we recommence from scratch to understand the basics.'); for(let secret of secrets) { if(secret.type === 'malfunction') preexplication(); } explanations();