--- id: 56533eb9ac21ba0edf2244ed title: Appending Variables to Strings challengeType: 1 guideUrl: 'https://portuguese.freecodecamp.org/guide/certificates/appending-variables-to-strings' videoUrl: '' localeTitle: Anexando variáveis ​​a seqüências de caracteres --- ## Description
Assim como podemos construir uma string sobre várias linhas a partir de literais de string, também podemos anexar variáveis ​​a uma string usando o operador mais igual ( += ).
## Instructions
Defina someAdjective e anexe-o ao myStr usando o operador += .
## Tests
```yml tests: - text: someAdjective deve ser definido para uma string com pelo menos 3 caracteres testString: 'assert(typeof someAdjective !== "undefined" && someAdjective.length > 2, "someAdjective should be set to a string at least 3 characters long");' - text: Anexar someAdjective ao myStr usando o operador += testString: 'assert(code.match(/myStr\s*\+=\s*someAdjective\s*/).length > 0, "Append someAdjective to myStr using the += operator");' ```
## Challenge Seed
```js // Example var anAdjective = "awesome!"; var ourStr = "freeCodeCamp is "; ourStr += anAdjective; // Only change code below this line var someAdjective; var myStr = "Learning to code is "; ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```