24.
Which operators can be used for concatenation in JavaScript?
operators * and /
operators + and +=
operators - and ++
operators & and |
Correct: B
In JavaScript, the concatenation of two strings can be performed using the + operator. For example, "Hello" + "World" will result in "HelloWorld". Additionally, the += operator can be used as a shorthand to concatenate a string to an existing variable. For example, if we have a variable called "name" with the value "John", name += " Doe" will result in the variable "name" being "John Doe".