freeCodeCamp/curriculum/challenges/english/02-javascript-algorithms-an.../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.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
chunky-monkey.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
confirm-the-ending.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
convert-celsius-to-fahrenheit.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
factorialize-a-number.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
falsy-bouncer.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
find-the-longest-word-in-a-string.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
finders-keepers.english.md A better solution to finders-keepers.english.md (#34759) 2019-02-10 20:13:48 -08:00
mutations.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
repeat-a-string-repeat-a-string.english.md Modify if statement (#36088) 2019-05-20 21:08:20 -04:00
return-largest-numbers-in-arrays.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
reverse-a-string.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
slice-and-splice.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
title-case-a-sentence.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
truncate-a-string.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30
where-do-i-belong.english.md fix(curriculum): quotes in tests (#18828) 2018-10-20 23:32:47 +05:30