Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rightPlace(string, char, string2) {
- let x = char.charAt(0);
- let result = string.replace('_', x);
- if (result === string2) {
- console.log('Matched');
- } else {
- console.log('Not Matched');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement