-
-
Notifications
You must be signed in to change notification settings - Fork 283
London_10- Danny Romero-JS-Core-1-Coursework-week3 #269
base: main
Are you sure you want to change the base?
Conversation
update mandatory
update exercises week3
Mandatory done |
|
||
} let arr = []; |
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.
It looks like you have the same code copied twice here, maybe this was an accident?
@@ -13,9 +13,25 @@ | |||
|
|||
function getTemperatureReport(cities) { | |||
// TODO | |||
} | |||
|
|||
let arr = []; |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you have the same function name defined twice here? function potentialHeadlines(allArticleTitles) {
Mandatory exercise done