Pages

match function in java script

Thursday, 5 April 2012

match function in java script 
it compares two strings and returns the match matching is not available it return the null
<script>
str="well come to java script";
alert(str.match ("java script");
</script>
replace
 this function replace a string with new string
< script>
str="welcome to java script";
alert (str.replace ("java script ","java")
</script>
tolower case
 converts the all   character   of the string in to lower case . alert (str.to lower case()) 
to upper case 
 converts the all lower to upper  character
 

Most Reading