Skip to content

Conversation

@dagmara-opalka
Copy link

prosze o cr :)

Copy link
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dagmaro,

Tutaj wszystko ok, z jedną drobną uwagą 👍

let modulo = b % aNumber;
console.log(modulo)

//inkrementacji sie nie da bo b jest const
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}
}

/* rozwiązanie z pętlą while */
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tutaj zabrakło mi rozwiązania ;)

const sum = getSum(a, b, c);
const even = isEven(sum);

showInfo(sum, even);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

console.log('10 największych liczb:', largestNumbers);

const average = getAvg(largestNumbers);
console.log('Średnia arytmetyczna 10 największych liczb:', average); No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

if (!grades || grades.length === 0) {
return 0;
}
const sum = grades.reduce((acc, grade) => acc + grade, 0);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ta część powtarza się z tą z linii 28 - można napisać funkcję, która będzie wywoływana w obu przypadkach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants