14.
What is the result of the assignment expression x = y = 5?
The value of x is 5 and the value of y is 5
The value of x is 5 and the value of y is 0
The value of x is 0 and the value of y is 5
An error is thrown because the expression is invalid
Correct: A
In JavaScript, an assignment expression can be chained together, meaning the value on the right side of the assignment operator (=) is assigned to both variables x and y. In this case, both x and y will have the value of 5 after the expression is evaluated. It is equivalent to writing y = 5; x = y; or x = 5; y = 5;.