Array.prototype.reduceRightintermediateconst chars = ['a', 'b', 'c']
chars.reduceRight((acc, c) => acc + c, '') // β 'cba'Use reduceRight() to reverse-join characters or elements without reversing the original array.
reduceRight() without an initial value starts accumulating from the rightmost element, which naturally reverses the order when joining.
['a', 'b', 'c'].reduceRight((acc, w) => acc + ' ' + w) // 'c b a'