{"ScriptPreparationCode":null,"TestCases":[{"Name":"Global","Code":"const isPalindrome = (str) =\u003E {\r\n const strLowerCase = str.toLowerCase();\r\n return strLowerCase === [...strLowerCase].reverse().join(\u0027\u0027);\r\n };\r\n\r\n const palindromeChecker = (arr) =\u003E arr.map((word) =\u003E ({\r\n word, isPalindrome: isPalindrome(word),\r\n }));\r\n\r\n console.log(palindromeChecker([\u0027Racecar\u0027, \u0027Hello\u0027, \u0027Radar\u0027, \u0027Foo\u0027]));\r\n console.log(palindromeChecker([\u0027Bar\u0027, \u0027Civic\u0027, \u0027World\u0027, \u0027Earth\u0027]));","IsDeferred":false},{"Name":"Local","Code":"const palindromeChecker = (arr) =\u003E {\r\n const isPalindrome = (str) =\u003E {\r\n const strLowerCase = str.toLowerCase();\r\n return strLowerCase === [...strLowerCase].reverse().join(\u0027\u0027);\r\n };\r\n\r\n return arr.map((word) =\u003E ({\r\n word, isPalindrome: isPalindrome(word),\r\n }));\r\n };\r\n\r\n console.log(palindromeChecker([\u0027Racecar\u0027, \u0027Hello\u0027, \u0027Radar\u0027, \u0027Foo\u0027]));\r\n console.log(palindromeChecker([\u0027Bar\u0027, \u0027Civic\u0027, \u0027World\u0027, \u0027Earth\u0027]));","IsDeferred":false}]}