JSFiddle - React, Tailwind, and code Playground

JavaScript

var array = ["A", "B", "C", "D"];

alert("Array reverse: " + array.reverse().join(','));