You're inefficiently calculating "a".charCodeAt(0) + 1 over and over again. You could use the precalculated value, 96, instead.
"a".charCodeAt(0) + 1
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.
re: Daily Challenge #110 - Love VS. Friendship VIEW POST
TOP OF THREAD FULL DISCUSSIONYou're inefficiently calculating
"a".charCodeAt(0) + 1
over and over again. You could use the precalculated value, 96, instead.