- A calculates the area of a circle
- B converts a string to uppercase
- C checks if a string is a palindrome
- D sorts an array in ascending order
JavaScript MCQ Javascript Functions MCQ
⚠ Report ✓ Question Verified Copy Link
function isPalindrome(str) {
str = str.toLowerCase();
return str === str.split('').reverse().join('');
}
Learn More MCQ Questions from JavaScript MCQ Javascript Functions MCQ