Im trying to do an infinite loop using while between 0 to 100 and 100 to 0, but the browser crashes. There is a way to clear the browser memory? This is my code:
You just need an infinite loop? If so just do
for(var i = 0; i < 1;){ console.log('infinite'); };
if you need with a while
var = 0; while(var < 1){ console.log('looOOoOOoOoOp'); };