Check if a string is suffix of another | Javascript program to find if a string is suffix of another ; Test case - sensitive implementation of endsWith function
let s1 = " " , s2 = " " ; let result = s2 . endsWith ( s1 ) ; if ( result ) document . write ( " " ) ; else document . write ( " " ) ;