23.
Which of the following is the correct syntax for an assignment expression in JavaScript?
5 = x;
x = 5;
x == 5;
x === 5;
Correct: B
The correct syntax for an assignment expression in JavaScript is to use the assignment operator (=) to assign a value to a variable. The variable is placed on the left-hand side of the operator, and the value is placed on the right-hand side. A common example is "x = 5;", where the value 5 is assigned to the variable x.