JavaScript JavaScript Basics (Retired) Introducing JavaScript Your First JavaScript Program

Reuven Bazov
Reuven Bazov
100 Points

i could'nt preform the document.write stage

i wrote the command pressed save and pressed preview, i saw the statment of the first stage

Adrien Contee
Adrien Contee
4,875 Points

You're going to have to give us more info than that. It's always best practice to post your code using the guidelines in the Markdown Cheatsheet below for formatting reference. It s the quickest way to get a response to your problem. Otherwise we won't know how to help or what you're seeing.

Richard andreasen
Richard andreasen
4,591 Points

more than likely since JavaScript is case sensitive you wrote the code as such Document.write when it should of been document.write JS is written typically as you would understand a camel hump such as var myVarExample. hope that helps!

1 Answer

Reuven Bazov Richard andreasen ... is right, I thought to myself..WTF... and the worksapces txt editor automatically capitalizes the D in document.write ("<h1>Welcome to the Javascript Basics</h1>"); so it almost works against you.

they should look into fixing that , other text editors I've used don't capitalize the D in document.write when doing autofill

so make sure the "d" is lowercase in document.write