New course! Every coder should learn Generative AI!
Try a free lesson0
What is unary +operator?
2 Answers
+ 4
It adds two numbers, or joins strings (text).
+ 2
It does nothing*. It's just there because we have unary - aswell.
(*It actually depends on what programming language you are talking about exactly.)