Returns true if the string starts with the specified substring.
startsWith(searchString, startIndex?)
searchString
The substring to search for at the start of the string.
startIndex optional
The index at which to begin searching. If omitted, search starts at the beginning of the string.
true if the string starts with the specified substring; otherwise, false.
"banana".startsWith("ba")
true
"banana".startsWith("na")
false