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 32 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
:D TYSM


amcvicar

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

 

Did you know?

Aspirin may benefit 11 different cancers, including those of the colon, pancreas, lungs, prostate, breasts, and leukemia.

Did you know?

The most dangerous mercury compound, dimethyl mercury, is so toxic that even a few microliters spilled on the skin can cause death. Mercury has been shown to accumulate in higher amounts in the following types of fish than other types: swordfish, shark, mackerel, tilefish, crab, and tuna.

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?

There are over 65,000 known species of protozoa. About 10,000 species are parasitic.

Did you know?

Urine turns bright yellow if larger than normal amounts of certain substances are consumed; one of these substances is asparagus.

For a complete list of videos, visit our video library