This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CODE CHALLENGE: | |
| // Fizz buzz: print 1 to 1000, but replace every multiple of | |
| // 3 with "fizz", every multiple of 5 with "buzz", | |
| // and any multiple of 3 AND 5 with "fizzbuzz" | |
| // TO RUN THE CODE: | |
| // Copy-paste it into something like REPL.it and test it =P | |
| // in JavaScript: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CODE CHALLENGE: | |
| // Fizz buzz: print 1 to 1000, but replace every multiple of | |
| // 3 with "fizz", every multiple of 5 with "buzz", | |
| // and any multiple of 3 AND 5 with "fizzbuzz" | |
| // TO RUN THE CODE: | |
| // Copy-paste it into something like REPL.it and test it =P | |
| // in JavaScript: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CODE CHALLENGE: | |
| // Fizz buzz: print 1 to 1000, but replace every multiple of | |
| // 3 with "fizz", every multiple of 5 with "buzz", | |
| // and any multiple of 3 AND 5 with "fizzbuzz" | |
| // TO RUN THE CODE: | |
| // Copy-paste it into something like REPL.it and test it =P | |
| // in JavaScript: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CODE CHALLENGE: | |
| // Fizz buzz: print 1 to 1000, but replace every multiple of | |
| // 3 with "fizz", every multiple of 5 with "buzz", | |
| // and any multiple of 3 AND 5 with "fizzbuzz" | |
| // TO RUN THE CODE: | |
| // Copy-paste it into something like REPL.it and test it =P | |
| // in JavaScript: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CHALLENGE: https://www.freecodecamp.org/challenges/check-for-palindromes | |
| // TESTS: | |
| // palindrome("eye") should return a boolean | |
| // | |
| function palindrome(str) { | |
| // Good luck! | |
| return true; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CHALLENGE: https://www.freecodecamp.org/challenges/check-for-palindromes | |
| // TESTS: | |
| // palindrome("eye") should return a boolean | |
| // | |
| function palindrome(str) { | |
| // Good luck! | |
| return true; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy | |
| /* | |
| You will be provided with an initial array | |
| (the first argument in the destroyer function), | |
| followed by one or more arguments. | |
| Remove all elements from the initial array that | |
| are of the same value as these arguments. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy | |
| /* | |
| You will be provided with an initial array | |
| (the first argument in the destroyer function), | |
| followed by one or more arguments. | |
| Remove all elements from the initial array that | |
| are of the same value as these arguments. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy | |
| /* | |
| GOAL: Remove all elements from the initial array that | |
| are of the same value as these arguments. | |
| */ | |
| function destroyer(arr) { | |
| // Remove all the values | |
| return arr; | |
| } |