Easy10 min
Palindrome Check
Return whether the string reads the same forward and backward. Compare characters exactly.
Your function
Implement solve(value, extra) in JavaScript. Return the answer; printing alone does not count as a result.
Examples
Input:
["level"]Output:
trueInput:
["hello"]Output:
falseConstraints
Input contains at most 1,000 values or characters. Numbers are finite integers. Inputs follow the structure shown in the examples.