Skip to content

Commit

Permalink
Update weather.js
Browse files Browse the repository at this point in the history
Defined "STRING", "LETTER1" and "LETTER2".
  • Loading branch information
samuellouf authored Aug 5, 2023
1 parent 0da79e1 commit 4500632
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extensions/SamuelLouf/weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@


const letters_of = (text, from, to) => {
STRING = text.toString();
LETTER1 = Number(from) || 0;LETTER2 = Number(to) || 0;
var STRING = text.toString();
var LETTER1 = Number(from) || 0;
var LETTER2 = Number(to) || 0;
return STRING.substring(LETTER1 - 1, LETTER2);
}

Expand Down

0 comments on commit 4500632

Please sign in to comment.