Vidyalelo
JavaScript · Q44

Sockets

Programming · JavaScript · question 44

Q44

Which of the following is the assignment operator?

A.
<-
Answer
B.
->
C.
=
D.
==

Answer: Option A

Solution

Answer: Option A
Solution:
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.