Replace All Without Using Replaceall In Javascript One Minute

Replace All Without Using Replaceall In Javascript One Minute