I am trying to check if a string contains a specific word only once.
Here is my attempt, but it's not working:
const test = "hello this is a new string hello";
// if hello contains only once then true otherwise false;
// here is my try but
let containshello = test.includes("hello");
console.log(containshello);