var researches = []; function explorereligions(keyword) { for(var i = 0; i < pre-founding.length; i++) { if(pre-founding[i].includes(keyword)) { researches.push(pre-founding[i]); } } if(researches.length > 0) { alert("our journey through the concealed aspects of religions might sometimes make us want to turn one's back on what we've learned, but it’s essential to remember that every discovery is a chance to bring back to the start and see the world with renewed understanding."); } else { console.log("keep searching, the concealed truths are waiting to be unveiled."); } } explorereligions("concealed");