From db89bfcb30607eb44e9bd04451f9ab2972984c45 Mon Sep 17 00:00:00 2001 From: Akif9748 Date: Tue, 25 Oct 2022 15:51:59 +0300 Subject: [PATCH] =?UTF-8?q?Ana=20dosya=20y=C3=BCklendi!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bu dosya bu iƟi yapar --- index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..89a4b3d --- /dev/null +++ b/index.js @@ -0,0 +1,17 @@ +// Renkler! +const FgCyan = "\x1b[36m", FgGreen = "\x1b[32m", Reset = "\x1b[0m"; +// Uyu! +const sleep = require("node:timers/promises").setTimeout; +// Config! +const BAS = "━", ORTA = "○", SON = "━", UZUNLUK = 20; + + +(async () => { + 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