Update palindromes.js

This commit is contained in:
Hifilo 2023-01-16 22:26:24 -05:00 committed by GitHub
parent f429cfa839
commit 67105d1950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -7,7 +7,6 @@
//there are many ways of checking the solution for palindromes without using regex. Here is one.
const palindromes = function (string) {
//there are many ways of checking the solution for palindromes without using regex. Here is one.
let alphabet = 'abcdefghijklmnopqrstuvwxyz'; //create a variable that holds all the letters of the alphabet
//Take the input string, convert to lowercase, split, reverse, & filter only letters, before rejoining them together as the constant cleanedString.