diff --git a/palindromes/palindromes.js b/palindromes/palindromes.js index 0023222..5c41da4 100644 --- a/palindromes/palindromes.js +++ b/palindromes/palindromes.js @@ -1,5 +1,5 @@ const palindromes = function(string) { - processedString = string.toLowerCase().replace(/[^a-z]/g, ""); + const processedString = string.toLowerCase().replace(/[^a-z]/g, ""); return ( processedString .split("")