---
title: Constructing Strings with Variables
localeTitle: Construindo Strings com Variáveis
---
## Construindo Strings com Variáveis

Adicione variáveis ​​que armazenam strings para criar strings mais longas. Verifique se a ortografia e o espaçamento estão corretos.
```
var myName = "Bobby"; 
 var myFavLetter = "B"; 
 var sentence = "Hello, I'm " + myName + ". My favorite letter is " + myFavLetter + "."; 
  //The result is "Hello, I'm Bobby. My favorite letter is B. 

```