Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var band = "John, Paul, George, Ringo";
- var beatles = band.replace(<reg-exp>, "and");
- console.log(beatles); //outputs "John, Paul, George and Ringo"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement