Skip to content

Commit

Permalink
Update weather.js
Browse files Browse the repository at this point in the history
Replaced "const" by "function" at lines 72 and 79.
  • Loading branch information
samuellouf committed Aug 5, 2023
1 parent 4500632 commit 3f4cae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/SamuelLouf/weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@
}


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

const itemOfFromString = (no, from, splitby) => {
function itemOfFromString(no, from, splitby){
var input1 = (Number(no) - 1);
var input2 = String(from);
var input3 = splitby;
Expand Down

0 comments on commit 3f4cae2

Please sign in to comment.