joshterrill / one-time-pad

a one-time pad cipher written in nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Assignment to constant variable.

christiaan-lombard opened this issue · comments

At this line you are assigning a new value to a const, which throws a TypeError.

const reverseLookup = reverse(reverseValue);
if (reverseLookup == 0) {
    reverseLookup = "";
}

Use let instead.