const company = 'NEtScape'; const word = 'Netscape'; const reg = new RegExp(`^${word}$`, 'i'); if (reg.test(company)) { console.log('Верно!'); }