FAQ: Classes - Instance


This community-built FAQ covers the “Instance” exercise from the lesson “Classes”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Introduction To JavaScript

FAQs on the exercise Instance

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!


Am I not allowed to use " when passing values through parameters? I passed surgeonCurry’s values like so:

const surgeonCurry = new Surgeon("Curry","Cardiovascular");

But it kept telling me I was wrong. I was completely lost, and I eventually just clicked Solution. But the only change it made was that it changed the quotations from double to single (so it looked like ‘Curry’, ‘Cardiovascular’ rather than with double quotes). I’ve been using double quotes for everything, why is it suddenly not okay?


It may have been an oversight on the author’s part to not include double quotes in the SCT. These things happen.

When getting a solution, be sure to copy your own code, first, then Reset the lesson and paste it back in, make the changes and Save. This way we may determine if there are other issues. If not, your code should pass.


Thanks! Out of curiosity, are there actually any differences between ’ and "? Do they have different uses for certain cases?


Rarely, as they are synonymous. We have both so one can be used inside the other.

"some text 'inner quote' end text"

'some text "inner quote" end text'