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 (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.