-
Notifications
You must be signed in to change notification settings - Fork 206
practice-js-basics done #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
devmentor-pl
left a comment
There was a problem hiding this 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.`); | ||
| } |
There was a problem hiding this comment.
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}`); |
There was a problem hiding this comment.
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ą`); | ||
| } | ||
| } |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
No description provided.