logo

Crowdly

Le code suivant génère une erreur en TS  : class Student { fullName: strin...

✅ 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);

More questions like this

Want instant access to all verified answers on moodle-miage-toulouse.westeurope.cloudapp.azure.com?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!