Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
const rod = (function rod() {
|
||||
const chars = "|/-\\";
|
||||
let i=0;
|
||||
return function() {
|
||||
i= (i+1) % 4;
|
||||
// We need to use process.stdout.write since console.log automatically adds a \n to the end of lines
|
||||
process.stdout.write(` ${chars[i]}\r`);
|
||||
}
|
||||
})();
|
||||
setInterval(rod, 250);
|
||||
Loading…
Add table
Add a link
Reference in a new issue