15.
What is the purpose of an assignment expression in JavaScript?
To compare two values
To perform a mathematical calculation
To assign a value to a variable
To create a new data type
Correct: C
Assignment expressions are used to assign a value to a variable. The value on the right side of the assignment operator (=) is assigned to the variable on the left side. For example, in the expression x = 5, the value 5 is assigned to the variable x.