Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

How To Generate An Alphabet Array With JavaScript

node v14.20.1
version: 1.0.0
endpointsharetweet
function generateAlphabet(capital = false) { return [...Array(26)].map((_, i) => String.fromCharCode(i + (capital ? 65 : 97))); } generateAlphabet();
Loading…

no comments

    sign in to comment