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 44 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
Wow, this really help


Liddy

  • Member
  • Posts: 342
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

If you could remove all of your skin, it would weigh up to 5 pounds.

Did you know?

More than 34,000 trademarked medication names and more than 10,000 generic medication names are in use in the United States.

Did you know?

Children of people with alcoholism are more inclined to drink alcohol or use hard drugs. In fact, they are 400 times more likely to use hard drugs than those who do not have a family history of alcohol addiction.

Did you know?

In 1885, the Lloyd Manufacturing Company of Albany, New York, promoted and sold "Cocaine Toothache Drops" at 15 cents per bottle! In 1914, the Harrison Narcotic Act brought the sale and distribution of this drug under federal control.

Did you know?

The training of an anesthesiologist typically requires four years of college, 4 years of medical school, 1 year of internship, and 3 years of residency.

For a complete list of videos, visit our video library