Given two strings, return boolean if s1 ends with s2, but only check the first n characters of s1.
// input:
const s1 = 'hello world', s2 = 'world', n = 5
// output:
false
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)
Given two strings, return boolean if s1 ends with s2, but only check the first n characters of s1.
// input:
const s1 = 'hello world', s2 = 'world', n = 5
// output:
false
/* output */