//the reduceRight method function reverseString5(str){ return [...str].reduceRight((acc, cur)=> { acc += cur return acc }, '') }