Wrote an article
I published How to Pass Callback Functions to String.replace() in JavaScript

In this article, I explained how the callback function in String.replace() works, and also showed a use case for it