DEV Community

Avinashd
Avinashd

Posted on

Js in bits - 8.2(basic operators)

Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.

String concat with binary +

The result is concatenation.

Image description

Concatenation of string with numbers converts numbers ---> strings.

Image description

But, there are some gotchas

Image description

String with other Math operators does math(convert string ---> number)

Image description

Leave y'r thoughts....

Top comments (0)