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)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay