TheOdinProject / javascript-exercises

MIT License
1.18k stars 30.27k forks source link

09_palindromes: Use const for solution variable #439

Closed MaoShizhong closed 3 months ago

MaoShizhong commented 3 months ago

Because

One of the variables uses let as a carryover from the original solution adapted from. This variable is never reassigned, so would be better declared with const. A tiny pedantic change but since the rest of the function's non-reassigned variables are declared with const, this keeps things consistent and prevents any "why use let here and const there?" confusions from learners.

This PR

Issue

N/A

Additional Information

Pull Request Requirements