mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
* Modify if statement Change the solution so an empty string is returned when num is less than 1 rather than less than 0 for consistency with instructions. * Add test New test checks that if num is 0, an empty string is returned * Fix test Fixing errors in newly proposed test that checks that empty string is returned when num is 0 * Modify intermediate solution Changing if statement in intermediate solution to check whether num is less than 1 rather than less than 0. (Also adding curly brackets to that solutions if/else statements.) * fix: removed unnecessary assert message arguments |
||
|---|---|---|
| .. | ||
| boo-who | ||
| chunky-monkey | ||
| confirm-the-ending | ||
| convert-celsius-to-fahrenheit | ||
| factorialize-a-number | ||
| falsy-bouncer | ||
| find-the-longest-word-in-a-string | ||
| finders-keepers | ||
| mutations | ||
| repeat-a-string-repeat-a-string | ||
| return-largest-numbers-in-arrays | ||
| reverse-a-string | ||
| slice-and-splice | ||
| title-case-a-sentence | ||
| truncate-a-string | ||
| where-do-i-belong | ||
| index.md | ||