freeCodeCamp/guide
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
..
arabic fix: replace imgur with s3 for arabic guide files with no conflict (#36051) 2019-05-21 01:22:16 +05:30
chinese typo: Remove errors within a challenge solution (#36097) 2019-05-20 12:48:28 -07:00
english Modify if statement (#36088) 2019-05-20 21:08:20 -04:00
portuguese typo: Remove errors within a challenge solution (#36097) 2019-05-20 12:48:28 -07:00
russian typo: Remove errors within a challenge solution (#36097) 2019-05-20 12:48:28 -07:00
spanish typo: Remove errors within a challenge solution (#36097) 2019-05-20 12:48:28 -07:00