---
title: "Discussion on \"Lesson 16: Mastering JavaScript String Concatenation with Binary +\" | Hashnode"
description: "Discussion on \"Lesson 16: Mastering JavaScript String Concatenation with Binary +\". 🔸 Basic Behavior\nIn JavaScript:\n\nThe binary + operator behaves differently based on operand types.\n\nIf either operand is a string, it converts the other to a string and performs concatenation.\n\nIf both are numbers, it adds them.\n\n\nconsole.log(1 + 2)..."
url: "https://hashnode.com/posts/lesson-16-mastering-javascript-string-concatenation-with-binary/67ff91a6dbd718f288c0743f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Lesson 16: Mastering JavaScript String Concatenation with Binary +](https://javascript-day-1.hashnode.dev/lesson-16-mastering-javascript-string-concatenation-with-binary?utm_source=hashnode&utm_medium=feed)

🔸 Basic Behavior In JavaScript: The binary + operator behaves differently based on operand types. If either operand is a string, it converts the other to a string and performs concatenation. If both are numbers, it adds them. console.log(1 + 2)...

Apr 16, 2025 · 5 min read · javascript-day-1.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#concatenation](https://hashnode.com/tag/concatenation)

## Written by

[manoj ymk](https://hashnode.com/@manoj-ymk)

@manoj-ymk

  
[View profile](https://hashnode.com/@manoj-ymk)

“Daily Dev Notes — For You and Future Me”

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
