const start = () => { const elems = []; const ids = []; const datasets = () => { const data = () => { // pushing ids.push(document.getElementById('home'), document.getElementById('search'),document.getElementById('')); elems.push(); console.log(ids); // end of data } data(); // end of datasets } datasets(); } function searchh(){ const val = document.getElementById('search').value; if (val.includes('chat')){ if(val.includes('bot')){ alert('chat bot search met') return; } if (val.includes('system')) { alert('chat system search met') return; } return; } else if(val.includes('blog')){ if (val.includes('')) { return; } } else if(val.includes('system')){ if (val.includes('order')) { alert('order system search met'); return } if (val.includes('transport')) { alert('transport system search met'); return } if (val.includes('school')) { alert('school system search met'); return } if (val.includes('complete')) { alert('complete system search met'); return } return } else if(val.includes('files')){ alert('files met'); return; } else if (val.includes('niczip')){ location.assign('nic.zip'); return; } else { alert('try again') } } start();