Home | Mailing List | Blog | Tutorial Videos

String Methods

String methods are used to work with string in Javascript. Which method would be used to find a specified value and return the position of the match?

For example, what method would tell you that "bird" is at position 4 in the following word string?

const word = 'The bird is the word';

Select one: