Use the lastIndexOf() method to find
the index of the last occurrence of the
following words in the string stored in story.
-
Find twist and store the result in the variable lastIndexOfTwist.
-
Find characters and store the result in the variable lastIndexOfCharacters.
-
Find intrigue and store the result in the variable lastIndexOfIntrigue.