Replacing the string using JavaScript Replace method.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 215
Below JavaScript code shows how to replace the given string:-

<script type = "text/javascript">
function ReplaceString()
{
var string1,string2;
string1 = "Replace string using C#";
string2 = string1.replace("C#", "JavaScript");
alert(string2);
}
</script>

Comments or Responses

Login to post response