<sectionid="description"> Es posible tener variables <dfn>locales</dfn> y <dfn>globales</dfn> con el mismo nombre. Cuando haces esto, la variable <code>local</code> tiene prioridad sobre la variable <code>global</code> . En este ejemplo: <blockquote> var someVar = "Hat"; <br> función myFun () { <br> var someVar = "Head"; <br> devuelve someVar; <br> } </blockquote> La función <code>myFun</code> devolverá <code>"Head"</code> porque la versión <code>local</code> de la variable está presente. </section>
<sectionid="instructions"> Agregue una variable local a la función <code>myOutfit</code> para anular el valor de <code>outerWear</code> con <code>"sweater"</code> . </section>