Mode entretien. Minuteur de 3 min, sans indices ni autocomplétion
The info property
FacileClasses3 min
Write a class Person. The constructor takes a name and an age. The getter info returns a string like 'johns age is 34'.
Exemples
new Person('john', 34).infoRenvoie 'johns age is 34'
Chargement de l'éditeur...
- The info string
- info is declared with get
Les tests cachés se lancent à la soumission