480 B
480 B
title | localeTitle |
---|---|
Constructing Strings with Variables | Construyendo cuerdas con variables |
Construyendo cuerdas con variables
Agregue variables que almacenen cadenas, para crear cadenas más largas. Asegúrese de que su ortografía y el espacio sea correcto.
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.