—————————————————————————————————————————————————————————————————————————————————————————————
<title></title>
<body>
<script language= "JavaScript" >
var arr=new Array (7,4,7,3,2,6,2,3);
document.write ("</br>" +arr.sort () + "</br>");
var str1=new String ("I love China");
var str2=new String ("I love England");
document.write ("The length of the string str1 is:" +str1.length+ "</br>");
document.write ("The 5th character of the returned string 2 is:" +str2.charat (5) + "</br>");
document.write ("Check the first string of China's location:" +str1.indexof ("China") + "</br>");
document.write ("Turn the characters in the string into uppercase letters:" +str2.touppercase () + "</br>");
var str3=str1.replace ("China", "England");
document.write ("Replace 1 string with 2 string:" +str3+ "</br>");
</script> </body>
————————————————————————————————————————————————————————————————————————————————————————————————————————
—————————— JavaScript, there are some operations on string strings ——————————