<sectionid="description"> Al definir funciones dentro de objetos en ES5, tenemos que usar la <code>function</code> palabra clave de la siguiente manera: <blockquote> const persona = { <br> nombre: "taylor", <br> sayHello: function () { <br> vuelve `hola! Mi nombre es $ {this.name} .`; <br> } <br> }; </blockquote> Con ES6, puede eliminar la palabra clave de <code>function</code> y los dos puntos por completo al definir funciones en objetos. Aquí hay un ejemplo de esta sintaxis: <blockquote> const persona = { <br> nombre: "taylor", <br> di hola() { <br> vuelve `hola! Mi nombre es $ {this.name} .`; <br> } <br> }; </blockquote></section>
<sectionid="instructions"> Refactorice la función <code>setGear</code> dentro de la <code>bicycle</code> objeto para usar la sintaxis abreviada descrita anteriormente. </section>