The value to be checked
The characters to be searched for at the start of the string
Optional
position: number[Optional] The position in this string at which to begin searching for searchString
.
Defaults to 0
true
if the given characters are found at the beginning of the string; otherwise, false
.
This method lets you determine whether or not a string begins with another string. This method is case-sensitive.