Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hardWords(array){
- let words = array[1];
- let text = array[0];
- for(let word of words){
- text = text.replace("_".repeat(word.length), word)
- }
- console.log(text);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement