-
Notifications
You must be signed in to change notification settings - Fork 349
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
rozwiązania #2
base: master
Are you sure you want to change the base?
rozwiązania #2
Conversation
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.
Bardzo fajne rozwiązanie!
//Twój kod | ||
// nie ma informacji o danych wejściowych | ||
const textArray = { |
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.
Eleganckie rozwiązanie!
} | ||
|
||
for (let i = 0, len = Object.keys(textArray).length; i < len; i++) { |
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.
Mała podpowiedź: .forEach lub for..in wyglądają znacznie przejrzyściej.
//Twój kod | ||
const [ num1, num2 ] = process.argv.slice(2,4); |
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.
Fajne wykorzystanie destrukturyzacji tablicy :)
No description provided.