RunJS - JavaScript Playground for macOS, Windows and Linux

PHOTO EMBED

Wed Feb 05 2025 13:10:29 GMT+0000 (Coordinated Universal Time)

Saved by @redflashcode

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.|
content_copyCOPY

https://runjs.app/