London_10- Danny Romero-JS-Core-1-Coursework-week3#269
London_10- Danny Romero-JS-Core-1-Coursework-week3#269Elenar9 wants to merge 9 commits intoCodeYourFuture:mainfrom
Conversation
update mandatory
update exercises week3
|
Mandatory done |
| } | ||
| return arr; | ||
|
|
||
| } let arr = []; |
There was a problem hiding this comment.
It looks like you have the same code copied twice here, maybe this was an accident?
| // TODO | ||
| } | ||
|
|
||
| let arr = []; |
There was a problem hiding this comment.
Your implementation here looks good 👍
You are adding the value returned by temperatureService to the array arr.
The question wants you to take this value, and put it into a string - like "The temperature in London is 10 degrees".
Can you think of how to create a string like this using the value you get back from the temperatureService?
One idea is to use template literals in JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
When you have created this string - you could add that to the array instead 😄
| @@ -6,6 +6,17 @@ | |||
| */ | |||
| function potentialHeadlines(allArticleTitles) { | |||
There was a problem hiding this comment.
Looks like you have the same function name defined twice here? function potentialHeadlines(allArticleTitles) {
Mandatory exercise done