easyJS ES5#103

String ends with (no built-in)

Prompt

Given two strings, return true if the first string ends with the second. Do NOT use String.prototype.endsWith. An empty ending returns true.

Hints

Solution

Your Code

5 min

Tests

Click Run to test your code