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

Glasgow Class 6 - Appolin Semegni Fotso - JavaScript - Week 3 - #224

Open
AppolinFotso wants to merge 3 commits into
CodeYourFuture:mainfrom
AppolinFotso:main
Open

Glasgow Class 6 - Appolin Semegni Fotso - JavaScript - Week 3#224
AppolinFotso wants to merge 3 commits into
CodeYourFuture:mainfrom
AppolinFotso:main

Conversation

@AppolinFotso

Copy link
Copy Markdown

No description provided.

Comment on lines +28 to +37
for (let title of allArticleTitles) {
titleLength.push(title.length);
}

let miniTitle = Math.min(...titleLength);

for (let title of allArticleTitles)
if (title.length == miniTitle) {
return title;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done @AppolinFotso. Very cool and clean method to find shortest title. I also just learned of the triple dot operator from your code, looks very useful thank you!

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.

Thank you @ManSangSin! I also learned a lot from your codes.

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