TZinovieva

Right Place

Jan 19th, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function rightPlace(oldWord, symbol, newWord) {
  2.     let word = oldWord.replace('_', symbol);
  3.  
  4.     let output = word === newWord ? "Matched" : "Not Matched";
  5.     console.log(output);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment