Palindrome Check

Easy · javascript · javascript · strings

Write solution(str) that returns true if the string reads the same forwards and backwards, false otherwise (case-sensitive, no other normalization).

Sample tests

solution("racecar") // => true

Submit

Leaderboard