freeCodeCamp/guide/english/certifications/javascript-algorithms-and-data-structures/basic-algorithm-scripting
Natalie Cardot 545b8a6f34 Modify if statement (#36088)
* 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
2019-05-20 21:08:20 -04:00
..
boo-who fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
chunky-monkey fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
confirm-the-ending Add solution using RegExp (#34294) 2019-03-04 15:35:27 -08:00
convert-celsius-to-fahrenheit fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
factorialize-a-number Removed image (#35806) 2019-04-09 15:41:23 -07:00
falsy-bouncer fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
find-the-longest-word-in-a-string fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
finders-keepers Add a solution for Finders Keepers challenge (#35655) 2019-03-23 08:35:58 -07:00
mutations fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
repeat-a-string-repeat-a-string Modify if statement (#36088) 2019-05-20 21:08:20 -04:00
return-largest-numbers-in-arrays fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
reverse-a-string fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
slice-and-splice fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
title-case-a-sentence fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
truncate-a-string fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
where-do-i-belong fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
index.md fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30