JavaScript: Test whether a string ends with a specified string - w3resource

JavaScript: Test whether a string ends with a specified string - w3resource

More to explore

Based on this image's title: “JavaScript: Test whether a string ends with a specified string - w3resource