What will be the equivalent output of the following JavaScript code snippet?
A.
B.
C.
D.
Code:
x = ~-y;
w = x = y = z;
q = a?b:c?d:e?f:g;
Code:
x = ~(-y); w = (x = (y = z));
q = a?b:(c?d:(e?f:g));
Code:
x = a?b:(c?d:(e?f:g));
q = ~(-y); w = (x = (y = z));
Code:
x = (x = (y = z));w = ~(-y);
q = a?b:(c?d:(e?f:g));
Code:
x = ~(-y); w = (x = (y = z));
q = (c?d:(e?f:g));