Para uma variável denominada irmandade, atribua um objeto com as propriedades place e ringBearer.
Atribua a string ‘Terra-média’ a colocar e um objeto a ringBearer. Esse objeto deve ter um nome de propriedade com o valor ‘Frodo Bolseiro’ e uma corrida de propriedade com o valor ‘hobbit’.
Por fim, acesse a irmandade de objetos para imprimir a string ‘hobbit’.
ENG
To a variable named fellowship assign an object with the properties place and ringBearer.
Assign the string ‘Middle-earth’ to place and an object to ringBearer. That object should have a property name with the value ‘Frodo Baggins’ and a property race with the value ‘hobbit’.
Finally, access the object fellowship to print the string ‘hobbit’.