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

28th
Oct 2015
Raghu Ranganathan
@razetime
Oct 28 2015 09:31
hint
CamperBot
@camperbot
Oct 28 2015 09:31

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]

Raghu Ranganathan
@razetime
Oct 28 2015 09:31
hint
CamperBot
@camperbot
Oct 28 2015 09:31

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]

Raghu Ranganathan
@razetime
Oct 28 2015 09:31
hint
CamperBot
@camperbot
Oct 28 2015 09:31

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]

Raghu Ranganathan
@razetime
Oct 28 2015 09:31
hint
CamperBot
@camperbot
Oct 28 2015 09:31

hint [4/8]

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]

Raghu Ranganathan
@razetime
Oct 28 2015 09:31
hint
CamperBot
@camperbot
Oct 28 2015 09:31

hint [5/8]

Hint: 3

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

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

Raghu Ranganathan
@razetime
Oct 28 2015 09:31
hint
CamperBot
@camperbot
Oct 28 2015 09:31

hint [6/8]

Spoiler Alert!

687474703a2f2f7777772e796f75726472756d2e636f6d2f796f75726472756d2f696d616765732f323030372f31302f31302f7265645f7761726e696e675f7369676e5f322e676966.gif

Solution ahead!

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

Raghu Ranganathan
@razetime
Oct 28 2015 09:31
hint
CamperBot
@camperbot
Oct 28 2015 09:31

hint [7/8]

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]

Raghu Ranganathan
@razetime
Oct 28 2015 14:23
bonfire Find The Longest Word
CamperBot
@camperbot
Oct 28 2015 14:23

:fire:Bonfire: Find the Longest Word in a String :link:

function findLongestWord(str) {
  return str.length;
}

findLongestWord('The quick brown fox jumped over the lazy dog');

Return the length of the longest word in the provided sentence.

more info:  bf details | bf links | hint

Abhisek Pattnaik
@abhisekp
Oct 28 2015 14:23
@razetime slow down
@razetime what's the issue?
you can chat about bonfires here https://gitter.im/FreeCodeCamp/HelpBonfires
CamperBot
@camperbot
Oct 28 2015 14:24
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Ethan Leyden
@Darksmurf
Oct 28 2015 21:29
Bonfire: Check for Palindromes
CamperBot
@camperbot
Oct 28 2015 21:29

: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.

more info:  bf details | bf links | hint

Ethan Leyden
@Darksmurf
Oct 28 2015 21:29
help
CamperBot
@camperbot
Oct 28 2015 21:29

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • bonfire BONFIRENAME info on a bonfire

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

Ethan Leyden
@Darksmurf
Oct 28 2015 21:30
hint
CamperBot
@camperbot
Oct 28 2015 21:30

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]

Ethan Leyden
@Darksmurf
Oct 28 2015 21:30
hint
CamperBot
@camperbot
Oct 28 2015 21:30

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]

Ethan Leyden
@Darksmurf
Oct 28 2015 21:30
thanks @camperbot
CamperBot
@camperbot
Oct 28 2015 21:30
darksmurf sends brownie points to @camperbot :sparkles: :thumbsup: :sparkles:
:star: 444 | @camperbot | http://www.freecodecamp.com/camperbot