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


mammy1697

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

 

Did you know?

Throughout history, plants containing cardiac steroids have been used as heart drugs and as poisons (e.g., in arrows used in combat), emetics, and diuretics.

Did you know?

The most common treatment options for addiction include psychotherapy, support groups, and individual counseling.

Did you know?

Essential fatty acids have been shown to be effective against ulcers, asthma, dental cavities, and skin disorders such as acne.

Did you know?

The people with the highest levels of LDL are Mexican American males and non-Hispanic black females.

Did you know?

About 80% of major fungal systemic infections are due to Candida albicans. Another form, Candida peritonitis, occurs most often in postoperative patients. A rare disease, Candida meningitis, may follow leukemia, kidney transplant, other immunosuppressed factors, or when suffering from Candida septicemia.

For a complete list of videos, visit our video library