Skip to content

Conversation

@Neil-Gorski
Copy link

No description provided.

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.

Neil,

Wszystko wygląda bardzo dobrze! 👍
Zostawiłem jedynie drobne usprawnienie w zadaniu 05 :)

}
function textLess(num) {
console.log(`${num} is less then 20.`);
}
Copy link
Owner

Choose a reason for hiding this comment

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

👍

str += ` * ${a}`;
result *= a;
}
console.log(`${str} = ${result}`);
Copy link
Owner

Choose a reason for hiding this comment

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

👍

default:
console.log(`Podany argument ${num} nie jest liczbą`);
}
}
Copy link
Owner

Choose a reason for hiding this comment

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

👍

const largest = getLargest(newArr);
console.log(largest);
const avg = getAvg(largest);
console.log(avg);
Copy link
Owner

Choose a reason for hiding this comment

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

👍

allGrades.push(...this.grades[subject]);
}
return (
allGrades.reduce((acc, val) => acc + val) / allGrades.length
Copy link
Owner

Choose a reason for hiding this comment

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

Zwróć uwagę, że ta część jest dość podobna do tej z linii 28-29, może warto napisać metodę (funkcje z wykorzystniem prototype) i wykorzystać ją w obu miejscach?

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