-
-
Notifications
You must be signed in to change notification settings - Fork 282
LND10 | Adrian Ilovan | JS1 Coursework Week3 #262
base: main
Are you sure you want to change the base?
Conversation
| - Hint: you can call the temperatureService function from your function | ||
| */ | ||
|
|
||
| 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! 👍
| Implement the function below, which will return a new array | ||
| containing only article titles which will fit. | ||
| */ | ||
|
|
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?
| 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!
| The editor of the FT has realised that headlines which have numbers in them get more clicks! | ||
| Implement the function below to return a new array containing all the headlines which contain a number. | ||
| (Hint: remember that you can also loop through the characters of a string if you need to) | ||
| */ |
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.