{"ScriptPreparationCode":"var wordList1 = [\u0027apple\u0027, \u0027banana\u0027, \u0027orange\u0027, \u0027kiwi\u0027, \u0027grape\u0027, \u0027APPLE\u0027, \u0027BaNaNa\u0027, \u0027ORAnge\u0027, \u0027kiWI\u0027, \u0027GRapE\u0027];\r\nvar wordList2 = [\u0027kiwi\u0027, \u0027orange\u0027, \u0027banana\u0027, \u0027grape\u0027, \u0027apple\u0027];","TestCases":[{"Name":"without lowercase function","Code":"function stringCompare(lowerA, lowerB) {\r\n if (lowerA \u003C lowerB) {\r\n return -1;\r\n }\r\n if (lowerA \u003E lowerB) {\r\n return 1;\r\n }\r\n return 0;\r\n}\r\n\r\nfor (let i = 0; i \u003C wordList1.length; i\u002B\u002B) {\r\n for (let j = 0; j \u003C wordList2.length; j\u002B\u002B) {\r\n stringCompare(wordList1[i], wordList2[j]);\r\n }\r\n }","IsDeferred":false},{"Name":"with lowercase function comp","Code":"function stringCompare(a, b) {\r\n const lowerA = a.toLowerCase();\r\n const lowerB = b.toLowerCase();\r\n if (lowerA \u003C lowerB) {\r\n return -1;\r\n }\r\n if (lowerA \u003E lowerB) {\r\n return 1;\r\n }\r\n return 0;\r\n}\r\n\r\nfor (let i = 0; i \u003C wordList1.length; i\u002B\u002B) {\r\n for (let j = 0; j \u003C wordList2.length; j\u002B\u002B) {\r\n stringCompare(wordList1[i], wordList2[j]);\r\n }\r\n }","IsDeferred":false}]}