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 JavaScript Basics Working with Strings Display the Value of a String on a Page

Why is my console returning "<main></main> = $1"?

When running "document.querySelector('main');", me console (iMac/Safari) returns the expected "<main></main>", but with an additional " = $1". I have inspected and compared the .html and .js files, but i do not see why this should be happening?

1 Answer

Gergely Bocz
Gergely Bocz
14,244 Points

Hi Josh Burczyk!

Could you share a snapshot of your workspace, so that I can have a look at your code?

You can snapshot your workspace by clicking on the photograph icon in the top right corner of your workspace!