We’re going to start learning about the built-in JavaScript objects and how to use them. Starting from the next section, we will explain these built-in JavaScript objects in detail.
1. String object
Example 1: Calculate string length
Big: " + txt.big() + "
")Small: " + txt.small() + "
")Bold: " + txt.bold() + "
")Italic: " + txt.italics() + "
")Blink: " + txt.blink() + " (does not work in IE)
")Fixed: " + txt.fixed() + "
")Strike: " + txt.strike() + "
")Fontcolor: " + txt.fontcolor("Red") + "
")Fontsize: " + txt.fontsize(16) + "
")Lowercase : " + txt.toLowerCase() + "
")Uppercase: " + txt.toUpperCase() + "
")Subscript: " + txt.sub() + "
")Superscript: " + txt.sup() + "
")Link: " + txt.link("http://www.w3school.com.cn") + "
")