# How can we concatenate 2 or more strings in JavaScript?

JavaScript, like any other language, has the ability to concatenate or join 2 or many more strings.

> Now how do we achieve this?  
> It is something as simple as using the `+`operator, suppose we have a string called `name`and a string that is `age`what we will do is show in a `console.log()`a small text the `name`and `age`.

Alternatively, we can use `concat()`, which is a method of the String object, this method returns a concatenated string.

<iframe src="https://upscri.be/f/788447?as_embed=true" width="700" height="350" frameborder="0" scrolling="no"></iframe>

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1648469112780/9eqQzVj4S.png)

In general, it is advisable to use the simplest form, name + age and take into account the spaces when making concatenations

**If the article you liked or you found interesting, please help me with 👏 🤓 You can follow me on Twitter or find me on GitHub by visiting my website.**

[**Francisco Imanol Suarez on about.me**  
*I am a web developer, student, and photographer in Trelew, Argentina. Read my articles.*about.me](https://about.me/franciscoimanol?source=post_page-----c50d86033537---------------------- "https://about.me/franciscoimanol?source=post_page-----c50d86033537----------------------")[](https://about.me/franciscoimanol?source=post_page-----c50d86033537----------------------)
