Solved

What Would the Browser Display If the Following Script Were

Question 5

Multiple Choice

What would the browser display if the following script were executed
< script type = "text/javascript" >
Var count = 5;
Var total = 0;
While ( count > -1 )
{
Total = total - 10;
Count = count - 1;
}
Document.write( total ) ;
< /script >


A) Nothing; the browser would generate an error.
B) 0
C) -50
D) -60

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions