Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(num) {
- if (num != 100) {
- console.log(`${num}% [${'%'.repeat(num / 10)}${'.'.repeat(10 - num / 10)}]`)
- console.log("Still loading...")
- } else {
- console.log(`100% Complete!`)
- console.log("[%%%%%%%%%%]")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement