question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Check for Palindromes needs more resource links

See original GitHub issue

Challenge Check for Palindromes has an issue. User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/58.0.3029.110 Chrome/58.0.3029.110 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

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



palindrome("eye");

In info are only the docs to .replace() and .toLowerCase(). You could add the Docs to .split(), .reverse() and .join() again. I didn’t know that I am allowed to use them. It would be helpful for some other users.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jonathanihmcommented, Jun 13, 2017

I think this would also be a good first-timer issue

0reactions
Natebetacommented, Jun 15, 2017

@raisedadead So if it’s true, then I will wait and appreciate. Case closed at this time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Function to check if a singly linked list is palindrome
Check if a Singly Linked List is Palindrome using Stack: · A simple solution is to use a stack of list nodes. This...
Read more >
Using recursion to determine whether a word is a palindrome
What if the string contains two or more letters? Here's where we'll have our recursive case. Consider the palindrome rotor. Its first and...
Read more >
Check for Palindrome | Data Structures & Algorithms - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
How to Check Palindrome Program? - Java - Great Learning
If it is more than one letter, then each character of the substring is checked. If the words are found equal, then the...
Read more >
A method to find palindromes in nucleic acid sequences - PMC
The first choice given by number 1 indicates that the user requires a palindromic sequence greater than or equal to a certain length....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found