This topic contains a solution. Click here to go to the answer

Author Question: What would the browser display if the following script is executed? var count = 0, total = 0; while ... (Read 32 times)

bobthebuilder

  • Hero Member
  • *****
  • Posts: 567
What would the browser display if the following script is executed?
 
  a) Nothing, the browser would generate an error.
  b) 0
  c) 50
  d) 60

Question 2

What would the browser display if the following code was executed in a script? var product = 0; while ( product <= 25 ); product = 2 + product;
 
  a) nothing, the script would result in an error
  b) 0
  c) 25
  d) 26



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by a Subject Expert

1_Step_At_ATime

  • Sr. Member
  • ****
  • Posts: 342
Answer to Question 1

Ans: (d)

Answer to Question 2

Ans: (a)




bobthebuilder

  • Member
  • Posts: 567
Reply 2 on: Jul 7, 2018
Wow, this really help


bassamabas

  • Member
  • Posts: 294
Reply 3 on: Yesterday
Gracias!

 

Did you know?

There used to be a metric calendar, as well as metric clocks. The metric calendar, or "French Republican Calendar" divided the year into 12 months, but each month was divided into three 10-day weeks. Each day had 10 decimal hours. Each hour had 100 decimal minutes. Due to lack of popularity, the metric clocks and calendars were ended in 1795, three years after they had been first marketed.

Did you know?

Warfarin was developed as a consequence of the study of a strange bleeding disorder that suddenly occurred in cattle on the northern prairies of the United States in the early 1900s.

Did you know?

Certain chemicals, after ingestion, can be converted by the body into cyanide. Most of these chemicals have been removed from the market, but some old nail polish remover, solvents, and plastics manufacturing solutions can contain these substances.

Did you know?

The average older adult in the United States takes five prescription drugs per day. Half of these drugs contain a sedative. Alcohol should therefore be avoided by most senior citizens because of the dangerous interactions between alcohol and sedatives.

Did you know?

In most cases, kidneys can recover from almost complete loss of function, such as in acute kidney (renal) failure.

For a complete list of videos, visit our video library