Which of the following is the assignment operator?
A. <-
B. ->
C. =
D. ==
Answer: Option A
Solution (By Examveda Team)
An assignment operator is used to assign a value to a variable.In JavaScript, = is the assignment operator.
It assigns the value on the right to the variable on the left.
Options <-, ->, and == are not assignment operators.
== is a comparison operator, not an assignment operator.
Join The Discussion