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...

Match the following Trust Center options with the correct description:

I. Add-Ins II. Privacy Options III. Trusted Documents IV. Trusted Publishers V. File Block Settings A. Enables you to trust network documents to open without Excel displaying any security warnings B. Directs Excel to trust digitally signed workbooks by certain creators C. Enables you to select which types of files, such as macros, to open in Protected View or which file type to prevent saving a file in D. Enables you to deal with nonmacro privacy issues E. Enables you to specify which add-ins will be allowed to run given the desired level of security

Computer Science & Information Technology

The ________ startup type is started by the logged on user or by a program only when it is needed

Fill in the blank(s) with correct word

Computer Science & Information Technology