Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(words, text) {
- const arrWord = words.split(', ');
- arrWord.forEach((word) => {
- const temp = '*'.repeat(word.length);
- text = text.replace(temp, word);
- });
- console.log(text);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement