In this lesson we'll explore some commonly used functions that apply specifically to strings
we can count the number of words in a string using the string word count.
Function here in the string Hello World we know is two separate words so the output would be to
we can reverse words in a string using the string reverse method in the string Hello World the output
in reverse would be as follows can see that your
the p p string position.
Function searches for specified text within a string.
In this example we're searching for the word world inside the hello world string the output in our web
browser is 6 because the word world starts at the sixth character position inside the string Hello World.
So we have one two three four five and six and then World begins this string replace function where
we place a word with another specified word here we've instructed the function to replace the word world
with the word John.
So what would have originally output it as Hello World will now output as hello John as seen here.