Peace to all.
Thank you all for your responsiveness!
elslamo alikom @rab_Allaha
this is nice well done you can also use replaceAll method to replace all the occurrence of insertx
check this out https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll
hope that help and have a nice day
Just be aware that replaceAll is a rather new addition to JavaScript that was standardized in ECMAScript 2021 and is currently supported by 91% of users (Can I use…)
thanks boss @mikoMK did not know that it was new addition
Vaaleikum assalam varah1matuLlah1 @just is my brother. Thank you for answering, they will know about this new feature
you very welcome brother @rab_Allaha
by the way what @mikoMK meant by it’s new feature that it will not be avilable for old version of browser like internet explorer 11 and older and chrome older than 84 you could check all those version in red color on the link the @mikoMK shared
and have a nice day for both of you