Variables can be used to store text or data. You can create a variable like this:


 var mytext = "Hello again";

This makes a variable called "mytext" and sets it to "Hello again".

You can print variables on the screen with document.write:

 var mytext = "Hello again";

Note that if quote marks are placed around the variable name, the variable name itself will be printed (instead of the variable value).

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.