function (replacement): This is used to call a function that is responsible to create a new substring which in turn used to replace the content matched in the original string.Here we will discuss the below syntax in detail. Var newString = str.replace(reg-expression|str, newSubstr|functionTocall)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |