Tell us what’s happening:
I tried and researched about this. I understood the concept but this is throwing the same errors. The tests cases that are not passing are " The weight property should be a private variable."
Your code so far
function Bird() {
this.weight = 15;
this.getWeight = function() {
return this.weight;
};
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36.
Link to the challenge: