The value to be checked
The characters to be searched for at the end of value string.
Optionallength: number
If provided, it is used as the length of value. Defaults to value.length.
true if the given characters are found at the end of the string; otherwise, false.
This method lets you determine whether or not a string ends with another string. This method is case-sensitive.