freeCodeCamp/curriculum/challenges/english
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
..
01-responsive-web-design fix: imgur to s3 for various files without conflict (#36057) 2019-05-20 23:58:20 +05:30
02-javascript-algorithms-and-data-structures Modify if statement (#36088) 2019-05-20 21:08:20 -04:00
03-front-end-libraries fix(curriculum): Convert blockquote elements to triple backtick syntax for Front End Libraries (#35994) 2019-05-14 07:01:32 -05:00
04-data-visualization fix(curriculum): Convert blockquote elements to triple backtick syntax for Data Visualization (#35995) 2019-05-14 07:04:05 -05:00
05-apis-and-microservices Semantic versioning required (#36074) 2019-05-17 09:07:16 -07:00
06-information-security-and-quality-assurance fix(curriculum): Convert blockquote elements to triple backtick syntax for Information Security And Quality Assurance (#35997) 2019-05-14 06:58:09 -05:00
08-coding-interview-prep fix: imgur to s3 for various files without conflict (#36057) 2019-05-20 23:58:20 +05:30
09-certificates chore(meta): Move challenge meta to challenges root 2018-10-11 02:15:05 +05:30