Practice how to check whether a string ends with the specified text in JavaScript

JavaScript logo JavaScript Online Editor