Capitalize 'Hint'-subtitles
This commit is contained in:
parent
c17c207d0e
commit
35f797f454
5 changed files with 5 additions and 5 deletions
|
@ -10,5 +10,5 @@ leapYears(1985) // is not a leap year: returns false
|
|||
```
|
||||
|
||||
|
||||
## hints
|
||||
## Hints
|
||||
- use an `if` statement and `&&` to make sure all the conditions are met properly
|
||||
|
|
|
@ -8,7 +8,7 @@ remove([1,2,3,4], 3) // should remove 3 and return [1,2,4]
|
|||
|
||||
|
||||
|
||||
## hints
|
||||
## Hints
|
||||
the first test on this one is fairly easy, but there are a few things to think about(or google) here for the later tests:
|
||||
- how to remove a single element from an array
|
||||
- how to deal with multiple optional arguments in a javascript function
|
||||
|
|
|
@ -11,5 +11,5 @@ You will notice in this exercise that there are multiple tests, after making the
|
|||
|
||||
|
||||
|
||||
## hints
|
||||
## Hints
|
||||
Strings in JavaScript cannot be reversed directly so you're going to have to split it into something else first.. do the reversal and then join it back together into a string.
|
||||
|
|
|
@ -7,7 +7,7 @@ sumAll(1, 4) // returns the sum of 1 + 2 + 3 + 4 which is 10
|
|||
```
|
||||
|
||||
|
||||
## hints
|
||||
## Hints
|
||||
|
||||
Think about how you would do this on pen and paper and then how you might translate that process into code:
|
||||
- create a variable to hold the final sum
|
||||
|
|
|
@ -11,7 +11,7 @@ Because we are human, we want the result temperature to be rounded to one decima
|
|||
|
||||
This exercise asks you to create more than one function so the `module.exports` section of the spec file looks a little different this time. Nothing to worry about, we're just packaging both functions into a single object to be exported.
|
||||
|
||||
## hints
|
||||
## Hints
|
||||
- You can find the relevant formulae on [Wikipedia](https://en.wikipedia.org/wiki/Conversion_of_units_of_temperature).
|
||||
|
||||
- Try to find by yourself on the Internet how to round a number to 1 decimal place in JavaScript. If you struggle, have a look [here](https://stackoverflow.com/q/7342957/5433628).
|
||||
|
|
Loading…
Reference in a new issue