.endsWith()

Term side of the Card
Topic: String
Unit title: .endsWith()
Categories: Method
Explanation side of the Card

Explanation: The method that checks if a string ends with a specified substring. It returns `true` if the string ends with the given substring and `false` otherwise.

Browser compatibility:
  • The chrome browser supports this feature starting from version 41
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 17
  • The safari browser supports this feature starting from version 9
Availability: