Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

WM4-Micheale-Andemariam-javascript-core-1-coursework-week3#112

Open
micheale2021 wants to merge 4 commits intoCodeYourFuture:mainfrom
micheale2021:main
Open

WM4-Micheale-Andemariam-javascript-core-1-coursework-week3#112
micheale2021 wants to merge 4 commits intoCodeYourFuture:mainfrom
micheale2021:main

Conversation

@micheale2021
Copy link

No description provided.

@micheale2021 micheale2021 changed the title WM4-javascript-core-1-coursework-week3 WM4-Micheale-Andemariam-javascript-core-1-coursework-week3 Aug 31, 2022
Copy link

@Arbeits-Sachen Arbeits-Sachen left a comment

Choose a reason for hiding this comment

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

Great Work, I didnt see any problems.

// TODO
let count = 0;
let result = [];
while(count < birthdays.length){

Choose a reason for hiding this comment

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

I would recommend a FOR loop here, rather than a WHILE loop.

let result;
do {
result = generateRandomNumber();
} while (result <= 50);

Choose a reason for hiding this comment

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

This is just a matter of opinion, but woulnt it be more effiecient just writing:

Suggested change
} while (result <= 50);
while(result <= 50)
{
result = generateRandomNumber();
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants