JSFiddle - React, Tailwind, and code Playground

JavaScript

c="H.", //change this to play around
    b=c[0].charCodeAt()<91,
    a="abcdefghijklmnopqrstuvwxyz",
    b&&(a=a.toUpperCase()),
    a=a.split(c[0]),
    a=a[1]+a[0],
    a=c[1]?a.split("").join("\n"):a
    
    //the output is inside 'a', here is the proof
    alert(a);