Some lets to consts and removing of trailing spaces from grunt lint

This commit is contained in:
Jarmo van Lenthe 2018-12-14 22:35:43 +01:00
parent dcff8971e8
commit b4a586c0b9
2 changed files with 5 additions and 5 deletions

View file

@ -42,12 +42,12 @@ class A1Z26CipherEncode extends Operation {
run(input, args) {
const delim = Utils.charRep(args[0] || "Space");
let output = "";
const sanitizedinput = input.toLowerCase(),
charcode = Utils.strToCharcode(sanitizedinput);
for (let i = 0; i < charcode.length; i++) {
let ordinal = charcode[i] - 96;
const ordinal = charcode[i] - 96;
if (ordinal > 0 && ordinal <= 26) {
output += ordinal.toString(10) + delim;