Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Loops, Arrays and Objects Tracking Data Using Objects Accessing Object Properties

Justin Rose
Justin Rose
11,957 Points

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?

Nelson J
Nelson J
7,411 Points

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

Murilo de Melo
Murilo de Melo
13,962 Points

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.