This is often worst achievable answer. You shouldn't override function approved in Formal spec by your possess. tc39.es/ecma262/multipage/… We can easily move the substrings for being replaced between [] along with the string to be used as a substitute must be passed as the second parameter to your replace operate. https://travisfcwsm.blogolenta.com/34873491/details-fiction-and-2752e