This is the script used for the mini programme :



var question ="Give me a number ! ";
var num = prompt(question, "");

if (num > 100)
{
document.write("<center><h2>Number must be below 100</h2>");
}
else
{
while (num <= 87)
{
document.writeln(num);
num++;
}


 

A small change in the programme made what u saw above occur



var question ="Give me a number ! ";
var num = prompt(question, "");

if (num > 100)
{
document.write("<center><h2>Number must be below 100</h2>");
}
else
{
while (num <= 87)
{
document.writeln("num");
num++;
}

What`s actually happening in this script ? Try it out again and find the explanation. . .


HOME

The work in this series is copyright work of www.global-engineering.tk

Contact : global_engineering2003@yahoo.com

You are the number person to access this page.