{"ScriptPreparationCode":"const value = \u0022douche nation\u0022\r\nconst ending = \u0022tion\u0022\r\n\r\nfunction compareEndsWith(val, comparator) {\r\n return val.endsWith(comparator)\r\n}\r\nfunction compareSliceMethod(val, comparator) {\r\n const thingToCompare = val.slice(-1)\r\n return thingToCompare === comparator\r\n}","TestCases":[{"Name":"endWith","Code":"const value = \u0022douche nation\u0022\r\nconst ending = \u0022n\u0022\r\ncompareEndsWith(value, ending)","IsDeferred":false},{"Name":"slice","Code":"const value = \u0022douche nation\u0022\r\nconst ending = \u0022n\u0022\r\ncompareSliceMethod(value, ending)","IsDeferred":false}]}