When ever i am trying to submit my code. The site is hanging out(all the other sites are working ) i logged in twice and even restarted my lappy but cant figure out the problem


var understand = true;
var avi = "avinash";
while(avi.length>4 ){
console.log("I'm learning while loops!");
understand = false;


Well the condition is true and as the length of avi is not changed in the process it will be true so it goes:

check condition -> do {} -> check condition -> do {} -> ...

As said the condition never gets false so the loop never stops until your browser refuses to handle it.