Courses / JavaScript
63. String.prototype.endsWith()
Determines whether a string ends with the characters of a specified string.
1 min read Chapter 63 of 99
JavaScript
String.prototype.endsWith()
String.prototype.endsWith() checks if a string ends with a specified substring.
"I need to verify if my URL ends with a specific path."
String.prototype.endsWith() is a method that determines whether a string ends with the characters of a specified string, returning true or false.
"I need to verify if my URL ends with a specific path."
String.prototype.endsWith() is a method that determines whether a string ends with the characters of a specified string, returning true or false.