Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    CamperBot
    @camperbot

    hint [2/9]

    Explanation:

    You have to check if the string you get as an input is a palindrome and return true if it is, and false otherwise.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Oleg Malinovsky
    @Cerberussian
    bf chunky monkey
    CamperBot
    @camperbot

    :fire:Bonfire: Chunky Monkey :link:

    function chunk(arr, size) {
      // Break it up.
      return arr;
    }
    
    chunk(['a', 'b', 'c', 'd'], 2);

    Write a function that splits an array (first argument) into groups the length of size (second argument) and returns them as a multidimensional array.

    more info:  bf details | bf links | hint

    Oleg Malinovsky
    @Cerberussian
    bf details
    CamperBot
    @camperbot

    :fire:Bonfire: Check for Palindromes :link:

    function palindrome(str) {
      // Good luck!
      return true;
    }
    
    
    
    palindrome("eye");
    Return true if the given string is a palindrome. Otherwise, return false.
    A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.
    You'll need to remove punctuation and turn everything lower case in order to check for palindromes.
    We'll pass strings with varying formats, such as "racecar", "RaceCar", and "race CAR" among others.
    Remember to use RSAP if you get stuck. Try to pair program. Write your own code.
    links:
    Oleg Malinovsky
    @Cerberussian
    bf chunky monkey
    CamperBot
    @camperbot
    Sorry, can't find a bonfire called details chunky monkey. [ Check the map? ]
    Oleg Malinovsky
    @Cerberussian
    bf chunky monkey details
    CamperBot
    @camperbot
    Sorry, can't find a bonfire called chunky monkey details. [ Check the map? ]
    Oleg Malinovsky
    @Cerberussian
    bf chunky monkey
    CamperBot
    @camperbot

    :fire:Bonfire: Chunky Monkey :link:

    function chunk(arr, size) {
      // Break it up.
      return arr;
    }
    
    chunk(['a', 'b', 'c', 'd'], 2);

    Write a function that splits an array (first argument) into groups the length of size (second argument) and returns them as a multidimensional array.

    more info:  bf details | bf links | hint

    Oleg Malinovsky
    @Cerberussian
    hint
    CamperBot
    @camperbot

    hint [3/9]

    Hint: 1

    You may use regular expressions (RegExp) to remove unwanted characters from the string.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Justin
    @JustinHatchett
    hint
    CamperBot
    @camperbot

    hint [1/9]

    ## :construction: After this are possible spoiler hints.

    Make sure you've tried to hard to solve it yourself before proceeding. :construction:

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Justin
    @JustinHatchett
    hint
    CamperBot
    @camperbot

    hint [2/9]

    Explanation:

    You have to check if the string you get as an input is a palindrome and return true if it is, and false otherwise.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Justin
    @JustinHatchett
    hint
    CamperBot
    @camperbot

    hint [3/9]

    Hint: 1

    You may use regular expressions (RegExp) to remove unwanted characters from the string.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Justin
    @JustinHatchett
    hint
    CamperBot
    @camperbot

    hint [4/9]

    Hint: 2

    You may use Array.prototype.split and Array.prototype.join methods or for loop.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Justin
    @JustinHatchett
    hint
    CamperBot
    @camperbot

    hint [5/9]

    Hint: 3

    You may lowercase the string using String.prototype.toLowerCase.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Justin
    @JustinHatchett
    hint
    CamperBot
    @camperbot

    hint [6/9]

    Spoiler Alert!

    687474703a2f2f7777772e796f75726472756d2e636f6d2f796f75726472756d2f696d616765732f323030372f31302f31302f7265645f7761726e696e675f7369676e5f322e676966.gif

    Solution ahead!

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Pamela
    @artistwhocodes
    hint
    CamperBot
    @camperbot

    hint [1/9]

    ## :construction: After this are possible spoiler hints.

    Make sure you've tried to hard to solve it yourself before proceeding. :construction:

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Pamela
    @artistwhocodes
    hint
    CamperBot
    @camperbot

    hint [2/9]

    Explanation:

    You have to check if the string you get as an input is a palindrome and return true if it is, and false otherwise.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Pamela
    @artistwhocodes
    hint
    CamperBot
    @camperbot

    hint [3/9]

    Hint: 1

    You may use regular expressions (RegExp) to remove unwanted characters from the string.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Justin
    @JustinHatchett
    I really don’t want to hint my way out of this one, but am I on the wrong track if I’m using an if/else statement here?
    I’ve learned a ton about the different functions, especially the replace function and RegEx and I just can’t seem to make it work fully.
    Cliff Lezark
    @Cllezark
    Hey Justin101, how much of your code works right now? I'm stuck too, but only with a few examples.
    maybe we can work this out together?
    oh, that was yesterday. sweet
    hint
    CamperBot
    @camperbot

    hint [1/9]

    ## :construction: After this are possible spoiler hints.

    Make sure you've tried to hard to solve it yourself before proceeding. :construction:

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Cliff Lezark
    @Cllezark
    hint
    CamperBot
    @camperbot

    hint [2/9]

    Explanation:

    You have to check if the string you get as an input is a palindrome and return true if it is, and false otherwise.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Cliff Lezark
    @Cllezark
    hint
    CamperBot
    @camperbot

    hint [3/9]

    Hint: 1

    You may use regular expressions (RegExp) to remove unwanted characters from the string.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Cliff Lezark
    @Cllezark
    hint
    CamperBot
    @camperbot

    hint [4/9]

    Hint: 2

    You may use Array.prototype.split and Array.prototype.join methods or for loop.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Cliff Lezark
    @Cllezark
    hint
    CamperBot
    @camperbot

    hint [5/9]

    Hint: 3

    You may lowercase the string using String.prototype.toLowerCase.

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Cliff Lezark
    @Cllezark
    hint
    CamperBot
    @camperbot

    hint [6/9]

    Spoiler Alert!

    687474703a2f2f7777772e796f75726472756d2e636f6d2f796f75726472756d2f696d616765732f323030372f31302f31302f7265645f7761726e696e675f7369676e5f322e676966.gif

    Solution ahead!

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Cliff Lezark
    @Cllezark
    hint
    CamperBot
    @camperbot

    hint [7/9]

    First

    function palindrome(str) {
      var normalizedStr = str.replace(/[\W_]/g, '').toLowerCase();
      var reverseStr = normalizedStr.split('').reverse().join('');
      return normalizedStr === reverseStr;
    }

    type hint for next hint :pencil: [Contribute at the FCC Wiki]