Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(text1, text2) {
- let newtext = text1
- text1 = text1.toLowerCase()
- text2 = text2.toLowerCase().split(' ');
- if (text2.includes(text1)) {
- console.log(newtext);
- } else {
- console.log(`${newtext} not found!`);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement