diff --git a/leapYears/README.md b/leapYears/README.md index 30bf967..476febf 100644 --- a/leapYears/README.md +++ b/leapYears/README.md @@ -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 diff --git a/removeFromArray/README.md b/removeFromArray/README.md index 9b3ebc0..44ee922 100644 --- a/removeFromArray/README.md +++ b/removeFromArray/README.md @@ -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 diff --git a/reverseString/README.md b/reverseString/README.md index dfb00de..578adc1 100644 --- a/reverseString/README.md +++ b/reverseString/README.md @@ -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. diff --git a/sumAll/README.md b/sumAll/README.md index f399eda..64072a0 100644 --- a/sumAll/README.md +++ b/sumAll/README.md @@ -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 diff --git a/tempConversion/README.md b/tempConversion/README.md index 0f34a07..bd3954e 100644 --- a/tempConversion/README.md +++ b/tempConversion/README.md @@ -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).