Merge pull request #243 from jamhog/add-declaration

palindromes: Add mising variable declaration
This commit is contained in:
Eric Olkowski 2022-11-19 07:40:26 -05:00 committed by GitHub
commit 2518281b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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("")