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 trialScott Wells
8,715 PointsProblem with my variable declaration? Help, please.
The quiz asks me to use the '.text()' or '.html()' method to complete the challenge. I'm pretty sure I wrote the code correctly, but maybe there's a syntax error? Thanks for the help!
1 Answer
Liam Clarke
19,938 PointsHi Scott
Ensure you use the correct one between text() and html() functions
Also, something that always catches me out, remember the dot before the class name in your selection like below:
$(".profile-text").text("I am a web developer");
Good Luck!