freeCodeCamp/curriculum/challenges/english/02-javascript-algorithms-an...
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
..
basic-algorithm-scripting Modify if statement (#36088) 2019-05-20 21:08:20 -04:00
basic-data-structures Added missing `</code>` in test text string (#36040) 2019-05-14 10:06:55 +02:00
basic-javascript fix(curriculum): Convert blockquote elements to triple backtick syntax for JavaScript Algorithms and Data Structures (#35992) 2019-05-17 08:20:30 -05:00
debugging fix(curriculum): Convert blockquote elements to triple backtick syntax for JavaScript Algorithms and Data Structures (#35992) 2019-05-17 08:20:30 -05:00
es6 fix(curriculum): Convert blockquote elements to triple backtick syntax for JavaScript Algorithms and Data Structures (#35992) 2019-05-17 08:20:30 -05:00
functional-programming fix(curriculum): Convert blockquote elements to triple backtick syntax for JavaScript Algorithms and Data Structures (#35992) 2019-05-17 08:20:30 -05:00
intermediate-algorithm-scripting fix(curriculum): Convert blockquote elements to triple backtick syntax for JavaScript Algorithms and Data Structures (#35992) 2019-05-17 08:20:30 -05:00
javascript-algorithms-and-data-structures-projects fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
object-oriented-programming Alter instructions (#36099) 2019-05-20 19:11:17 -04:00
regular-expressions fix/regex-lower-number-of-matches (#36004) 2019-05-17 23:53:00 +01:00