const limit = 15; let count = 1; Array(limit).fill(0).reduce((acc, _, index) => { const spaces = ' '.repeat( Math.abs(limit - count) / 2 ); const stars = '*'.repeat(count) + '\n'; index >= Math.|
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter