These are chat archives for camperbot/bonfire-check-for-palindromes

7th
Oct 2015
Bhaskar Tejaswi
@bhaskarcodes
Oct 07 2015 18:35
bonfire diff two arrays
CamperBot
@camperbot
Oct 07 2015 18:35

:fire:Bonfire: Diff Two Arrays :link:

function diff(arr1, arr2) {
  var newArr = [];
  // Same, same; but different.
  return newArr;
}

diff([1, 2, 3, 5], [1, 2, 3, 4, 5]);

Compare two arrays and return a new array with any items not found in both of the original arrays.

more info:  bf details | bf links | hint

Bhaskar Tejaswi
@bhaskarcodes
Oct 07 2015 18:35
hint
CamperBot
@camperbot
Oct 07 2015 18:35

hint [1/8]

## :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]

Bhaskar Tejaswi
@bhaskarcodes
Oct 07 2015 18:35
hint
CamperBot
@camperbot
Oct 07 2015 18:35

hint [2/8]

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]

Bhaskar Tejaswi
@bhaskarcodes
Oct 07 2015 18:35
bonfire diff two arrays hint
CamperBot
@camperbot
Oct 07 2015 18:35
Sorry, can't find a bonfire called diff two arrays hint. [ Check the map? ]
Susannah Skyer Gupta
@SuzGupta
Oct 07 2015 22:39
bonfire title case a string
CamperBot
@camperbot
Oct 07 2015 22:39
Sorry, can't find a bonfire called title case a string. [ Check the map? ]
Susannah Skyer Gupta
@SuzGupta
Oct 07 2015 22:40
bonfire title case a sentence
CamperBot
@camperbot
Oct 07 2015 22:40

:fire:Bonfire: Title Case a Sentence :link:

function titleCase(str) {
  return str;
}

titleCase("I'm a little tea pot");

Return the provided string with the first letter of each word capitalized.

more info:  bf details | bf links | hint

Susannah Skyer Gupta
@SuzGupta
Oct 07 2015 22:40
bf details
CamperBot
@camperbot
Oct 07 2015 22:40

: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:
Susannah Skyer Gupta
@SuzGupta
Oct 07 2015 22:40
bf details title case a sentence
CamperBot
@camperbot
Oct 07 2015 22:40
Sorry, can't find a bonfire called details title case a sentence. [ Check the map? ]
hint
CamperBot
@camperbot
Oct 07 2015 22:59

hint [3/8]

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]