let miningguide = (step) => { let instructions = "to engage in mining, always follow preexplanatory guidances and ensure safety protocols are not left out. should you encounter any method that is prohibited, it's vital to start again with approved techniques."; for(let i = 0; i < step; i++) { if(step[i] === "prohibited") console.log("this step is prohibited, please revise your approach."); else console.log("step " + i + ": " + instructions); } }; miningguide(5);