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 Basics (Retired) Introducing JavaScript Your First JavaScript Program

Victor Gordian
Victor Gordian
4,656 Points

Doesn't show anything.

alert("Hello from victor"); document.write("h1"Welcome to java script basics</h1>"); alert("thanks for visiting.");

thats all i have of coding after opening it on the third video..its quiet annoying because i have no idea what i have download.

1 Answer

Jacobus Hindson
Jacobus Hindson
14,429 Points

Victor,

Try this

alert("Hello from victor");
document.write("<h1>Welcome to JavaScript Basics</h1>");
alert("Thanks");

Notice the Quotation marks around the H1 html tags.

Victor Gordian
Victor Gordian
4,656 Points

it says when open it starts with "index of/ " and on the page it says ../ css/ 17-Mar-2015 03:40 - scripts.js 17-Mar-2015 05:07 101

Jacobus Hindson
Jacobus Hindson
14,429 Points

That sounds like your workspace screen. In the top section you should see script.js, that is where the code above goes. Checkout Workspaces and Click "Start Tour" for more help on getting to know workspaces.

Victor Gordian
Victor Gordian
4,656 Points

darn, alright. Thank you.