I am running a file like so:
for (let i = 100; i--){
  console.log(i);
}
How can I make this console each number in the same place:
console.log(99 --> changes to 98, 97, 96)
Instead of :
console.log(99);
console.log(98);
console.log(97);
...
I am running a file like so:
for (let i = 100; i--){
  console.log(i);
}
How can I make this console each number in the same place:
console.log(99 --> changes to 98, 97, 96)
Instead of :
console.log(99);
console.log(98);
console.log(97);
...
 
    
     
    
    You can useconsole.log('\033[2J'); after each console.log() call.
