Duration: 15 minutes
Summary: In this video we wrap up our discussion of the String object. As I mentioned before the String object in JavaScript is very powerful. It is important that you spend some time learning all the functions available. Specifically here, we will look at the functions that retrieve specific chucks and characters from the String. The indexOf function is handy in finding the index of a characters starting from the beginning of the string and from specific locations. The substr function gives us a piece of the string starting from a specific location as well. toLowerCase and toUpperCase convert the string to lower and upper case as the name implies. Finally, we show off the use of the split function to split the string input chunks using a delimiter (in the example we used the comma and the vertical bar as delimiters). We wrote a separate function to display the result as an HTML list.
Methodology of the development of example: Good coding standard and simplified design.
Technology Used: JavaScript – Core language Concepts
Keywords: JavaScript, HTML, function, var, script, document, writeln, String, chatAt, indexOf, substr, toLowerCase, toUpperCase, split.