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!

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 Loops, Arrays and Objects Tracking Data Using Objects Accessing Object Properties

Accessing Object Properties lesson

so the Accessing Object properties Lesson video. I got everything to work to say Hello my name is Sarah, But when i copy that same correct code and put in a folder together with the css file, the index.html file and the syles.css file. only objects shows up in the web page. Im trying to understand why it will work in the lessons but not with a text editor everything is exactly the same i copied the files that were correct. any ideas?

You mentioned that you added the index.html and syles.css (did you mean styles.css?).

1 Answer

It's a little confusing. Do you mean properties of objects in JS? The code is not together with a css file, but with a js file, with this extension- they're different. Also, there are text editors that do not have JS pre-installed, only HTML and CSS.