Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wordFinder(word, text){
- let words = word.toLowerCase()
- let texts = text.toLowerCase().split(" ")
- if(texts.includes(words)){
- console.log(word)
- }else{
- console.log(`${word} not found!`)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement