8000 Use const for palindrome solution variable (#439) · TezzGit/javascript-exercises@461c852 · GitHub
[go: up one dir, main page]

Skip to content

Commit 461c852

Browse files
authored
Use const for palindrome solution variable (TheOdinProject#439)
1 parent f215901 commit 461c852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

09_palindromes/solution/palindromes-solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const palindromes = function (string) {
22
// Since we only consider letters and numbers, create a variable containing all valid characters
3-
let alphanumerical = 'abcdefghijklmnopqrstuvwxyz0123456789';
3+
const alphanumerical = 'abcdefghijklmnopqrstuvwxyz0123456789';
44

55
// Convert to lowercase, split to array of individual characters, filter only valid characters, then rejoin as new string
66
const cleanedString = string

0 commit comments

Comments
 (0)
0