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 31 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
Great answer, keep it coming :)


bassamabas

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

 

Did you know?

People who have myopia, or nearsightedness, are not able to see objects at a distance but only up close. It occurs when the cornea is either curved too steeply, the eye is too long, or both. This condition is progressive and worsens with time. More than 100 million people in the United States are nearsighted, but only 20% of those are born with the condition. Diet, eye exercise, drug therapy, and corrective lenses can all help manage nearsightedness.

Did you know?

Colchicine is a highly poisonous alkaloid originally extracted from a type of saffron plant that is used mainly to treat gout.

Did you know?

Limit intake of red meat and dairy products made with whole milk. Choose skim milk, low-fat or fat-free dairy products. Limit fried food. Use healthy oils when cooking.

Did you know?

Though methadone is often used to treat dependency on other opioids, the drug itself can be abused. Crushing or snorting methadone can achieve the opiate "rush" desired by addicts. Improper use such as these can lead to a dangerous dependency on methadone. This drug now accounts for nearly one-third of opioid-related deaths.

Did you know?

Signs of depression include feeling sad most of the time for 2 weeks or longer; loss of interest in things normally enjoyed; lack of energy; sleep and appetite disturbances; weight changes; feelings of hopelessness, helplessness, or worthlessness; an inability to make decisions; and thoughts of death and suicide.

For a complete list of videos, visit our video library