{"ScriptPreparationCode":"var stringToCheck = \u0027/asdasd/asdasd/asasd/asad/asdasd.html\u0027;\r\nvar stringToCheckLength = stringToCheck.length;\r\nvar stringToFind = \u0027.html\u0027;\r\nvar stringToFindLength = 5;\r\nvar isStringFound = false;","TestCases":[{"Name":"substring","Code":"if (stringToCheck.substring(stringToCheckLength - stringToFindLength) === stringToFind) {\r\n isStringFound = true;\r\n}","IsDeferred":false},{"Name":"endsWith","Code":"if (stringToCheck.endsWith(stringToFind)) {\r\n isStringFound = true;\r\n}","IsDeferred":false}]}