Question: Question 1) What does a browser do when it encounters the following code in a web page? document.write( It works!); A) displays It works! in

Question 1)

What does a browser do when it encounters the following code in a web page? document.write( "It works!");

A) nothing
B) 3
C) x
D) x = 3
E) var x = 3;

Question 9)

What is the value of x after this code is executed? (It is inside SCRIPT tags). var y = 2; x = 1 + 2 * y + 3;

A) 0
B) 8
C) 9
D) 11
E) 15

Question 101 pts

What is displayed by the program below? (It is inside SCRIPT tags). var x = 3; var y = 4; document.write( (x + 1) ^ (y - 1) ;

A) 256
B) 81
C) 64
D) 9
E) nothing because there is a syntax error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!