32.
What will be the output of the following code?
let x = 10;
console.log(++x);
Syntax Error
9
11
10
Correct: C
The code will output 11 because the ++ operator is used as a prefix, meaning it increments the value of x before it is logged to the console. Therefore, x is first incremented from 10 to 11, and then the updated value of x (which is 11) is logged to the console.