const regex = /Node/;
const str = "Node.js is amazing!";
console.log(regex.test(str)); // خروجی: true