Created
July 25, 2012 11:25
-
-
Save CodeNegar/3175630 to your computer and use it in GitHub Desktop.
javascript string replace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str="Visit Microsoft!"; | |
var n=str.replace("Microsoft","W3Schools"); | |
alert(n); //Visit W3Schools! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment