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