PHP Classes

File: js/isPalindrome.js

Recommend this page to a friend!
  Classes of bamigboye biodun   Logical Functions   js/isPalindrome.js   Download  
File: js/isPalindrome.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Logical Functions
General-purpose PHP and JavaScript functions
Author: By
Last change:
Date: 1 year ago
Size: 294 bytes
 

Contents

Class file image Download
const isPalindromeLong = word => { let stack = word.split('') let rword = ''; rword = stack.reverse().join(""); return rword === word } const isPalindrome = word => word.toLowerCase().split('').reverse().join("") === word.toLowerCase() console.log(isPalindrome('raceCAr'))