<sectionid="description"> Anteriormente hemos utilizado el código <code>var myName = "your name";</code><code>"your name"</code> se llama una <dfn>cadena</dfn><dfn>literal</dfn> . Es una cadena porque es una serie de cero o más caracteres entre comillas simples o dobles. </section>
<sectionid="instructions"> Cree dos nuevas variables de <code>string</code> : <code>myFirstName</code> y <code>myLastName</code> y asigne los valores de su nombre y apellido, respectivamente. </section>
- text: <code>myFirstName</code> debe ser una cadena con al menos un carácter.
testString: 'assert((function(){if(typeof myFirstName !== "undefined" && typeof myFirstName === "string" && myFirstName.length > 0){return true;}else{return false;}})(), "<code>myFirstName</code> should be a string with at least one character in it.");'
- text: <code>myLastName</code> debe ser una cadena con al menos un carácter.
testString: 'assert((function(){if(typeof myLastName !== "undefined" && typeof myLastName === "string" && myLastName.length > 0){return true;}else{return false;}})(), "<code>myLastName</code> should be a string with at least one character in it.");'