Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wordFinder(str1, str2) {
- let senctence = str2.split(' ').map(x => x.toLocaleLowerCase());
- senctence = (senctence.includes(str1.toLocaleLowerCase()) ? str1 : `${str1} not found!`);
- console.log(senctence)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement