✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Le code suivant génère une erreur en TS :
class Student {
fullName: string;
constructor(public firstName: string, public middleInitial: string, public lastName: string) {
this.fullName = firstName + " " + middleInitial + " " + lastName;
}
}
let s = new Student("Joe", "R", "Biden");
console.log(s.fullName);
console.log(s.firstName);
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!