daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function isPalindrome(string){
  2.   string = string.toLowerCase();
  3.   var charArr = string.split('');
  4.  
  5.   charArr.forEach( char => {
  6.     console.log(char);
  7.   })
  8.   console.log(charArr.length)
  9. }
  10.  
  11. isPalindrome("İris");
  12.    
  13. i
  14.  ̇  <- what is this ?
  15. r
  16. i
  17. s
  18. 5
RAW Paste Data
Top