DEV Community

Discussion on: Day 12 - Making A Search Function: Rest Countries Part II

Collapse
 
joanne profile image
Joanne

Ah yes, indexOf always starts at 0! Since I wanted to look at the beginning of string for the characters, this is a much shorter way to write out my search function. Thanks!