Skip to content

pactice done#149

Open
Neil-Gorski wants to merge 1 commit intodevmentor-pl:masterfrom
Neil-Gorski:master
Open

pactice done#149
Neil-Gorski wants to merge 1 commit intodevmentor-pl:masterfrom
Neil-Gorski:master

Conversation

@Neil-Gorski
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.

Neil,

Zadanka są ok - uważaj tylko na dodawanie let - szczegóły w komentarzach ;)

console.log(randomNumber);

if (randomNumber > 5) {
for (i = 5; i <= randomNumber; i++) {
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.

Pamiętaj o let przed i - inaczej i będzie globalne, co nie jest dobrą praktyką

let result = 0; No newline at end of file
let result = 0;

for (i = 1; i <= x; i++) {
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.

Podobnie tutaj.

} else {
console.log(`On the ${iteration}. you hit x(${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