> For the complete documentation index, see [llms.txt](https://js201.gitbook.io/js-101/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://js201.gitbook.io/js-101/console/concatenation.md).

# Concatenation

In any programming language, string concatenation simply means appending one or more strings to another string. For example, when strings "*World*" and "*Good Afternoon*" are concatenated with string "*Hello*", they form the string "*Hello World, Good Afternoon"*. We can concatenate a string in several ways in JavaScript.

### Example:

```javascript
const icon = '👋';

// using template Strings
`hi ${icon}`;

// using join() Method
['hi', icon].join(' ');

// using concat() Method
''.concat('hi ', icon);

//  using + operator
'hi ' + icon;

// RESULT
// hi 👋
```

### 📝 Task:

* [ ] Write a program to set the values for `str1`and `str2` so the code prints '*Hello World*' to the console.

### 💡 Hints:

* Visit the [concatenation](/js-101/strings/concat.md) chapter of strings for more info about string concatenation.
