Pls tell me what is wrong here. I am even copy the answer from the solution, but still cannot pass this one here

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

function Bird() {
this.weight = 15;

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/98.0.4758.102 Safari/537.36

Challenge: Use Closure to Protect Properties Within an Object from Being Modified Externally

Link to the challenge:

This is a public property of Bird. It’s supposed to be a private property.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.