Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlacenka committed May 16, 2024
1 parent 4647143 commit 1771271
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,18 @@ export function sum(numbers: number[]): number {
return numbers.reduce((acc, value) => acc + value, 0);
}

console.log(sum([1, 2, 3, 4, 5]));
const MONDAY_COUNT = 1;
const TUESDAY_COUNT = 2;
const WEDNESDAY_COUNT = 3;
const THURSDAY_COUNT = 4;
const FRIDAY_COUNT = 5;

console.info(
sum([
MONDAY_COUNT,
TUESDAY_COUNT,
WEDNESDAY_COUNT,
THURSDAY_COUNT,
FRIDAY_COUNT,
]),
);

0 comments on commit 1771271

Please sign in to comment.