loop
Guessing any number between 1 to 20. run the loop till you not get correct number. For that use prompt() box.
for this below code is correct or not
var i=prompt("Please enter no where the loop stop between 1 to 20"," 0");
i = Number(i);
var x=1;
if(x!=i)
{document.write( x "<br/>");
x ;}
document.write("The loop Stop here");
</script>