Both operands are strings

Explanation: When both operands are primitive strings, the + operator very simply concatenates them together:

'a' + 'b'; // => "ab"

Get Clean Code in JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.