Skip to content

feat: Resolve basic loop tasks#150

Open
zanetasochon wants to merge 4 commits intodevmentor-pl:masterfrom
zanetasochon:master
Open

feat: Resolve basic loop tasks#150
zanetasochon wants to merge 4 commits intodevmentor-pl:masterfrom
zanetasochon:master

Conversation

@zanetasochon
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
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.

Żaneto,

Super, o to chodziło! 👍
PS. Jedna drobna uwaga w ostatnim zadaniu :)

}
} else {
console.log('Wylosowana liczba jest zbyt mała, aby uzyć pętli');
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍 a

i++;
}

console.log(result);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

03/app.js Outdated
Comment on lines +6 to +7
const number = Math.round(Math.random() * x);
randomNumber = number;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Dlaczego nie od razu? tj. randomNumber = Math.round(Math.random() * x);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Faktycznie! Do poprawy :)

Copy link
Copy Markdown
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.

👍

while (x !== randomNumber) {
const number = Math.round(Math.random() * x);
randomNumber = number;
randomNumber = Math.round(Math.random() * x);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

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