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

finished mandatory and exercises - #34

Open
Monika39-maker wants to merge 2 commits into
CodeYourFuture:mainfrom
Monika39-maker:main
Open

finished mandatory and exercises#34
Monika39-maker wants to merge 2 commits into
CodeYourFuture:mainfrom
Monika39-maker:main

Conversation

@Monika39-maker

Copy link
Copy Markdown

No description provided.


function getTemperatureReport(cities) {
// TODO
let tempDetailArr = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nice code structure, easy to read. Great work Monika

@beckyf0keefe beckyf0keefe left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Generally everything looking good, just make sure you are paying close attention to the details <50 not the same as <=50. Good naming of variables like we talked about. If you have time please take a look at the title with fewest works function and see if you can make it work for all situations by replacing 6 with a variable.

generateRandomNumber()
randNumber = generateRandomNumber()

} while (randNumber < 50)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What happens here if the random number is 50? Should the loop be carrying on? Will it?

// TODO
for (let title of allArticleTitles) {
let titleWordsArr = title.split(' ');
if (titleWordsArr.length <= 6 ) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Where does this 6 come from? Is there something else that we can compare to that would work even if all the titles are longer than 6 words?

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.

3 participants