Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- replace(subject, needle, replace)
- {
- for(i = 0 to subject.length - 1)
- {
- if(subject[i] == needle)
- subject[i] = replace;
- }
- return subject;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement