Modo entrevista. Cronômetro de 3 min, sem dicas e sem autocompletar
The info property
FácilClasses3 min
Write a class Person. The constructor takes a name and an age. The getter info returns a string like 'johns age is 34'.
Exemplos
new Person('john', 34).infoRetorna 'johns age is 34'
Carregando o editor...
- The info string
- info is declared with get
Os testes ocultos rodam no envio