Tell us what’s happening:
Hi, not sure what is wrong here. I tested on inspection and the get method is the correct output when i tested, a private variable and a getmethod yet my 2nd test is wrong
Your code so far
function Bird() {
let weight = 10;
this.getWeight = function(){
return weight;
};
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.
Link to the challenge:
