ES6 syntax
This commit is contained in:
parent
db89bfcb30
commit
412ecfa3bf
1 changed files with 16 additions and 0 deletions
16
index.mjs
Normal file
16
index.mjs
Normal file
|
@ -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
|
Loading…
Reference in a new issue