Code QuizIntermediate Accessing a Protected Member
Spot why the protected property can't be read from outside.
Codetypescript
class Animal {
protected species: string = "unknown";
}
class Dog extends Animal {}
const d = new Dog();
console.log(d.species);What is the bug in this code?