Created
September 5, 2022 03:10
-
-
Save compscitwilight/52fa99e0cfa8a15b1a23ddb354fd0083 to your computer and use it in GitHub Desktop.
Revisions
-
compscitwilight created this gist
Sep 5, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ 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 }