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.
Related Questions on Sockets
What does the value 2 of the WebSocket attribute Socket.readyState indicate?
A. Closed connection
B. Handshake connection
C. Unestablished connection
D. Established connection and communication is possible
Which method is used to close the WebSocket?
A. Socket.flush()
B. Socket.close()
C. Socket.Close()
D. Socket.dispose()

Join The Discussion