DEV Community

loading...

Discussion on: JavaScript Quiz Part 2

Collapse
thesudeep profile image
Sudeep Pandey

var input = "king";
var reverseString = input.split("").reduce((accumulator, currentValue, index, array)=> currentValue + accumulator);