Advertisement
Onesible

Untitled

Mar 6th, 2025
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(num) {
  2.     if (num != 100) {
  3.         console.log(`${num}% [${'%'.repeat(num / 10)}${'.'.repeat(10 - num / 10)}]`)
  4.         console.log("Still loading...")
  5.     } else {
  6.         console.log(`100% Complete!`)
  7.         console.log("[%%%%%%%%%%]")
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement