indexOf() and lastIndexOf()
indexOf
Very similarly to search(), indexOf() will return a string's first appearance within another string.
indexOf(), however, takes a string and not a regular expression as its first parameter. If no string is provided you'll get a 0 back because...
raissa.hashnode.dev3 min read