{"ScriptPreparationCode":"var str = \u0027Hooman\u0027;\r\nvar ending = \u0027man\u0027;","TestCases":[{"Name":"endsWith()","Code":"function solution(str, ending){\r\n return str.endsWith(ending);\r\n}","IsDeferred":false},{"Name":"For loop","Code":"function solution(str, ending){\r\n \r\n for (let \r\n i = str.length -1, \r\n j = ending.length - 1;\r\n j \u003E= 0;\r\n i--, j--) \r\n \t\t{if (str[i] !== ending[j]) return false}\r\n return true\r\n}","IsDeferred":false}]}