const max = 10 function CreateProgressBar(progress: number) { if (progress > max) { console.log(`Progress bar is out of range of ${max}`) return } const progressBar = `${"🟩".repeat(progress)}${"⬛".repeat(max - progress)}` return progressBar }