Examveda

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.

This Question Belongs to Javascript >> Sockets

Join The Discussion

Related Questions on Sockets