?
Which of the following is the assignment operator?
Answer & Solution
Correct Answer:
Option
A
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.
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
Login to post a comment or share your explanation.
Login