logo

Crowdly

Browser

Add to Chrome

Will the next code compile? Please, choose the correct option. interface Pers...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Will the next code compile? Please, choose the correct option.

interface Person {

  name: string;

  surname: string;

}

 

function logPerson(p: Person) {

  console.log(`${p.name}, ${p.surname}`);

}

 

const person = { name: "Paul", surname: "Mass" };

logPerson(person);

More questions like this

Want instant access to all verified answers on softserve.academy?

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

Browser

Add to Chrome