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

LND10 | Adrian Ilovan | JS1 Coursework Week3 - #262

Open
AdrianIlovan wants to merge 4 commits into
CodeYourFuture:mainfrom
AdrianIlovan:lnd10/adrianilovan
Open

LND10 | Adrian Ilovan | JS1 Coursework Week3#262
AdrianIlovan wants to merge 4 commits into
CodeYourFuture:mainfrom
AdrianIlovan:lnd10/adrianilovan

Conversation

@AdrianIlovan

Copy link
Copy Markdown

Only 2/3 mandatory completed so far.

@@ -12,6 +12,16 @@
*/

function getTemperatureReport(cities) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perfect! 👍

Implement the function below, which will return a new array
containing only article titles which will fit.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks very good 👍
For extra practice, can you try re-writing this using the filter array method?

Implement the function below, which returns the title with the fewest words.
(you can assume words will always be seperated by a space)
*/
function titleWithFewestWords(allArticleTitles) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very good solution!

@@ -24,6 +44,13 @@ function titleWithFewestWords(allArticleTitles) {
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The next few exercises look good as well!
I would recommend you practice all of these using array methods now 😄

@moneyinthesky

Copy link
Copy Markdown
Contributor

Hey @AdrianIlovan! This is a very good start - when you have time, it would be good practice to come back and finish the remaining questions 😄

@moneyintheskymoneyinthesky added the reviewed A mentor has reviewed this code label Mar 15, 2023
@AdrianIlovanAdrianIlovan changed the title Lnd10/adrianilovanLND10 | Adrian Ilovan | JS1 Coursework Week3Jun 6, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

reviewedA mentor has reviewed this code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@AdrianIlovan@moneyinthesky