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 37 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
Excellent


fatboyy09

  • Member
  • Posts: 358
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

The most destructive flu epidemic of all times in recorded history occurred in 1918, with approximately 20 million deaths worldwide.

Did you know?

Green tea is able to stop the scent of garlic or onion from causing bad breath.

Did you know?

The use of salicylates dates back 2,500 years to Hippocrates’s recommendation of willow bark (from which a salicylate is derived) as an aid to the pains of childbirth. However, overdosage of salicylates can harm body fluids, electrolytes, the CNS, the GI tract, the ears, the lungs, the blood, the liver, and the kidneys and cause coma or death.

Did you know?

Nitroglycerin is used to alleviate various heart-related conditions, and it is also the chief component of dynamite (but mixed in a solid clay base to stabilize it).

Did you know?

Although the Roman numeral for the number 4 has always been taught to have been "IV," according to historians, the ancient Romans probably used "IIII" most of the time. This is partially backed up by the fact that early grandfather clocks displayed IIII for the number 4 instead of IV. Early clockmakers apparently thought that the IIII balanced out the VIII (used for the number 8) on the clock face and that it just looked better.

For a complete list of videos, visit our video library