Skip to content

rozwiązania #2

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

rozwiązania #2

wants to merge 3 commits into from

Conversation

dadlez
Copy link

@dadlez dadlez commented Jan 29, 2018

No description provided.

Copy link
Contributor

@Ami777 Ami777 left a 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 = {
Copy link
Contributor

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++) {
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

Fajne wykorzystanie destrukturyzacji tablicy :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants