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

395 B

title localeTitle
Appending Variables to Strings 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!"