In this lesson, students learn how to use four new methods, strip
, replace
, find
, and count
, to alter strings.
Students will be able to:
strip
method to remove leading and trailing whitespace from a stringreplace
method to use a different character throughout a stringfind
method to return the index value of the first location of a certain element in a stringcount
method to return the number of times an element occurs in a stringThese are all the activities included in the lesson