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

Author Question: What would the browser display if the following code is executed in a script? var grade = 59 if ( ... (Read 34 times)

dollx

  • Hero Member
  • *****
  • Posts: 558
What would the browser display if the following code is executed in a script? var grade = 59 if ( grade >= 60 ) document.writeln( Passed. ); else document.write( Failed.  ); document.writeln( You must take this course agai
 
  a) Passed.
  b) Failed.
  c) You must take this course again.
  d) Failed. You must take this course again.

Question 2

What would the browser display if the following code is executed in a script? var x = 11, y = 14; if ( x > 13 ) if ( y > 13 ) document.writeln( x and y are > 13 ); else document.writeln( x is <= 13 );
 
  a) nothing, the code will generate an error
  b) 11
  c) x and y are > 13
  d) x is <= 13



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by a Subject Expert

cam1229

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

Ans: (b)

Answer to Question 2

Ans: (d)




dollx

  • Member
  • Posts: 558
Reply 2 on: Jul 7, 2018
YES! Correct, THANKS for helping me on my review


kswal303

  • Member
  • Posts: 316
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

The newest statin drug, rosuvastatin, has been called a superstatin because it appears to reduce LDL cholesterol to a greater degree than the other approved statin drugs.

Did you know?

The immune system needs 9.5 hours of sleep in total darkness to recharge completely.

Did you know?

Anesthesia awareness is a potentially disturbing adverse effect wherein patients who have been paralyzed with muscle relaxants may awaken. They may be aware of their surroundings but unable to communicate or move. Neurologic monitoring equipment that helps to more closely check the patient's anesthesia stages is now available to avoid the occurrence of anesthesia awareness.

Did you know?

Adult head lice are gray, about ? inch long, and often have a tiny dot on their backs. A female can lay between 50 and 150 eggs within the several weeks that she is alive. They feed on human blood.

Did you know?

For high blood pressure (hypertension), a new class of drug, called a vasopeptidase blocker (inhibitor), has been developed. It decreases blood pressure by simultaneously dilating the peripheral arteries and increasing the body's loss of salt.

For a complete list of videos, visit our video library