Palindrome Check

Facile · 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).

Tests d'exemple

solution("racecar") // => true

Soumettre

Classement