Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Introduction to jQuery DOM Manipulation Changing It Up with jQuery Review

Anette Jonsson
Anette Jonsson
2,174 Points

Hi, could you please help me with the correct answer to this question?

The question in Introduction to jQuery quiz, step 4 of 5, where I should fill in the blanks. I can't get this right.

A ___ is a function that is used to retrieve information whereas a ___ is used to assign a value.

Kind regards / Anette

2 Answers

-- --
-- --
12,382 Points

Hi Anette,

A getter is a function that is used to retrieve information whereas a setter is used to assign a value.

Anette Jonsson
Anette Jonsson
2,174 Points

Thanks Mace :-) I was really tired last evening so I made the question, or rather the answer to the question, more complicated than it was.

-- --
-- --
12,382 Points

It happens. :) Glad I could help!