How to check if a string ends with another string in JavaScript

How to check if a string ends with another string in JavaScript

More to explore

Based on this image's title: “How to check if a string ends with another string in JavaScript