Generate the alphabet

Andrijan Portrait

Andrijan Tasevski ยท 03 Nov, 2022

const lowerCase = [...Array(26)].map((_, i) => String.fromCharCode(i + 97));

const upperCase = lowerCase.map(letter => letter.toUpperCase());

String.charCodeAt() - MDN Docs

String.fromCharCode() - MDN Docs