Home >Web Front-end >JS Tutorial >Rookie javascript basic information compilation 2_basic knowledge
1.
//Use the attributes of variables
2.
//Convert all letters in the string to uppercase letters.
3.
//Add a hyperlink to a variable in js
4.
//indexOf method (locates the position where a specified character first appears in the string. If not found, returns -1, case sensitive)
5.
//match() method
//Use match() to find a specific character in a string, and if found, return this character.
6.
//replace() method replaces certain characters with other characters in a string.
var str="Visit Microsoft!"
document.write(str.replace("Microsoft","W3School"))