Modo entrevista. Temporizador de 3 min, sin pistas y sin autocompletado
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'.
Ejemplos
new Person('john', 34).infoDevuelve 'johns age is 34'
Cargando el editor…
- The info string
- info is declared with get
Las pruebas ocultas se ejecutan al enviar