I want a code to check whole and exact word match :)
So look
is not matching looked
in my logic.
let speech = "you ever looked at someone";
let a = "look";
if(speech.includes(a)){
console.log("Whole Word Matches")
} else {
console.log("No Match!")
}
How can I modify the code above to check the whole word match