String Replace with Callback Function, in JavaScript

preview_player
Показать описание
In this video, I show how useful the function replacement argument of the string replace() method is, for dynamically applying advanced replacement strings on matches.

_____

_____

🌟 About Me:
Dillion Megida, creator of DEEECODE, is a Software Engineer, Developer Advocate and a Content Creator passionate about simplifying topics around Tech via articles and videos.

_____

⚡️ Connect with me:
Рекомендации по теме
Комментарии
Автор

This was very insightful. Thanks Megida 😊😊

Osamormusic
Автор

Brother, the 1st argument of the callback function(that we passed inside the replace method's 2nd argument) will be that digit that we wanna replace the digit(present in the original string) with. But what are the 2nd & 3rd arguments of this callback function, can you please state with this example?

aman
Автор

thankyu this vidio is very handy, im indonesian

fahrul