Please help. I dont know is wrong with my code it wont run

Tell us what’s happening:
Describe your issue in detail here.
i cant see to see what the problem is here anybody help?
Your code so far

function Dog(name, color) {
this.numLegs = 4; = name;
this.color = color;

let terrier = new Dog (name, color);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.

Challenge: Extend Constructors to Receive Arguments

Link to the challenge:

Read the last sentence of the instructions very closely:

Pass it two strings as arguments for the name and color properties.

What are you currently passing the function?

Thanks got it. Appreciate it a lot

1 Like

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