-
-
Notifications
You must be signed in to change notification settings - Fork 282
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 |
| } | ||
| return arr; | ||
|
|
||
| } 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?
| // 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 😄
| The home page of the web site has a headline section, which only has space for article titles which are 65 characters or less. | ||
| Implement the function below, which will return a new array containing only article titles which will fit. | ||
| */ | ||
| 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