1 What value for 'c' does line 11 display? What value for 'a' does line 12 display: What value for 'a' does line 16 display: What value for 'b' does line 16 display: What value for 'c' does line 17 display:

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 13RQ
icon
Related questions
Question
1 <script>
2 var a = 6;
3 var b
= 5;
4 var c = 0;
6 function mystery (numl, num2) {
7
var a;
8.
c = numl + num2;
6.
a = numl + num2 + C;
10
num2 - numl;
document.write(c + "<br>" );
document.write(a + "<br>" );
11
12
13 }
14
15 mystery ( 4, 3);
16 document.write(a +
+ b + "<br>");
17 document.write(c +
"<br>" );
18
19 </script>
What value for 'c' does line 11 display?
What value for 'a' does line 12 display:
What value for 'a' does line 16 display:
What value for 'b' does line 16 display:
What value for 'c' does line 17 display:
Transcribed Image Text:1 <script> 2 var a = 6; 3 var b = 5; 4 var c = 0; 6 function mystery (numl, num2) { 7 var a; 8. c = numl + num2; 6. a = numl + num2 + C; 10 num2 - numl; document.write(c + "<br>" ); document.write(a + "<br>" ); 11 12 13 } 14 15 mystery ( 4, 3); 16 document.write(a + + b + "<br>"); 17 document.write(c + "<br>" ); 18 19 </script> What value for 'c' does line 11 display? What value for 'a' does line 12 display: What value for 'a' does line 16 display: What value for 'b' does line 16 display: What value for 'c' does line 17 display:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage