Solved

What Would the Browser Display If the Following Script Were

Question 19

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents