Operator

Unary plus (+)

Common mistakes

var a = 1,
var b = 2,
var c = a + b

output: 12

var a = 1,
var b = 2,
var c = Number(a) + Number(b)

output: 3

Last updated