From 412ecfa3bf8a0170aa882e36ead36abfadafd701 Mon Sep 17 00:00:00 2001 From: Akif9748 Date: Tue, 25 Oct 2022 15:55:08 +0300 Subject: [PATCH] ES6 syntax --- index.mjs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 index.mjs diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..75940eb --- /dev/null +++ b/index.mjs @@ -0,0 +1,16 @@ +// Renkler! +const FgCyan = "\x1b[36m", FgGreen = "\x1b[32m", Reset = "\x1b[0m"; +// Uyu! +import { setTimeout as sleep } from "node:timers/promises"; +// Config! +const BAS = "━", ORTA = "○", SON = "━", UZUNLUK = 20; + +for (let i = 0; i <= UZUNLUK; i++) { + console.clear(); + console.log(FgCyan + BAS.repeat(i) + Reset + ORTA + FgGreen + SON.repeat(Math.abs(UZUNLUK - i))); + await sleep(20); +} + +console.log(Reset); + +// Made with JS and 💖 by Akif9748 \ No newline at end of file