--- id: 56533eb9ac21ba0edf2244b9 title: Constructing Strings with Variables challengeType: 1 videoUrl: '' localeTitle: Construyendo cuerdas con variables --- ## Description
A veces necesitarás construir una cadena, al estilo de Mad Libs . Al utilizar el operador de concatenación ( + ), puede insertar una o más variables en una cadena que está creando.
## Instructions
Establezca myName en una cadena igual a su nombre y compile myStr con myName entre las cadenas "My name is " y " and I am well!"
## Tests
```yml tests: - text: myName debe establecerse en una cadena de al menos 3 caracteres testString: 'assert(typeof myName !== "undefined" && myName.length > 2, "myName should be set to a string at least 3 characters long");' - text: Usa dos operadores + para construir myStr con myName dentro de él testString: 'assert(code.match(/[""]\s*\+\s*myName\s*\+\s*[""]/g).length > 0, "Use two + operators to build myStr with myName inside it");' ```
## Challenge Seed
```js // Example var ourName = "freeCodeCamp"; var ourStr = "Hello, our name is " + ourName + ", how are you?"; // Only change code below this line var myName; var myStr; ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```