I am trying to understand how to implement the map method (rather than using a for loop) to check a string for palindromes and return boolean values for whether the mapped a
Javascript map method on array of string elements by using split() function.
let str = 'hello'; str.split('').map((x)=> { console.log("|"+x+"|"); return x; })