freeCodeCamp/guide/spanish/certifications/javascript-algorithms-and-d.../basic-javascript/appending-variables-to-strings/index.md

13 lines
395 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Appending Variables to Strings
localeTitle: Anexando Variables a las Cadenas
---
## Anexando Variables a las Cadenas
Asegúrese de que su ortografía y el espaciado son correctos. Anexar cadenas (almacenadas dentro de variables) se puede hacer así:
```
var adj = "happy!";
var sent = "Today, I woke up being ";
sent += adj; // The result is "Today, I woke up being happy!"
```