-
-
Notifications
You must be signed in to change notification settings - Fork 283
LND10 | Adrian Ilovan | JS1 Coursework Week3 #262
base: main
Are you sure you want to change the base?
Conversation
@@ -12,6 +12,16 @@ | |||
*/ | |||
|
|||
function getTemperatureReport(cities) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! 👍
*/ | ||
|
There was a problem hiding this comment.
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?
} | ||
return headline | ||
} | ||
|
||
|
||
/* | ||
The editor of the FT likes short headlines with only a few words! | ||
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) { |
There was a problem hiding this comment.
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) { | |||
*/ |
There was a problem hiding this comment.
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 😄
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 😄 |
Only 2/3 mandatory completed so far.