State the order of evaluation of the operators in each of the following JavaScript statements and show the value of x after each statement is performed.

a) x = 7 + 3 * 6 / 2 - 1;
b) x = 2 % 2 + 2 * 2 - 2 / 2;
c) x = ( 3 * 9 * ( 3 + ( 9 * 3 / ( 3 ) ) ) );


a) * is first, / is second, + is third, and - is fourth. Value of x is 15.
b) % is first, * is second, / is third, + is fourth, - is fifth. Value of x is 3.
c) 5 6 4 2 3 1
Value of x is 324.

Computer Science & Information Technology

You might also like to view...

What is the data rate for Fast Ethernet?

What will be an ideal response?

Computer Science & Information Technology

The NOW function is ________, meaning that it will update automatically each time the workbook is opened

Fill in the blank(s) with correct word

Computer Science & Information Technology

How many channels does 802.11g provide for communication with clients,

a. 20 b. 12 c. 10 d. 3 e. 8

Computer Science & Information Technology

?What is a hashing collision?

What will be an ideal response?

Computer Science & Information Technology