https://www.codewars.com/kata/57a1fd2ce298a731b20006a4
Codewars - Achieve mastery through coding practice and developer mentorship
A coding practice website for all programming levels – Join a community of over 3 million developers and improve your coding skills in over 55 programming languages!
www.codewars.com
DESCRIPTION:
Write a function that checks if a given string (case insensitive) is a palindrome.
코드
function isPalindrome(x) {
return x.split('').reverse().join('').toLowerCase() === x.toLowerCase();
}
'알고리즘 > Codewars' 카테고리의 다른 글
[Codewars] Meeting (6 kyu) / JavaScript (0) | 2023.04.11 |
---|---|
[Codewars] Return the day (8 kyu) / JavaScript (0) | 2023.04.10 |
[Codewars] Training JS #5: Basic data types--Object (8 kyu) / JavaScript (0) | 2023.04.08 |
[Codewars] Grasshopper - Function syntax debugging (8 kyu) / JavaScript (0) | 2023.04.07 |
[Codewars] Anagram Detection (7 kyu) / JavaScript (0) | 2023.04.06 |
댓글