Difference between revisions of "Javascript"

From Wikicliki
Jump to: navigation, search
(document.write)
(document.write)
Line 6: Line 6:
 
<pre>var text="Hello"
 
<pre>var text="Hello"
 
document.write(''+text+'') // - prints Hello</pre>
 
document.write(''+text+'') // - prints Hello</pre>
 +
<pre>var text="Hello"
 +
document.write(''+text+'') // - prints Hello</pre>
 +
 +
== Array ==

Revision as of 16:37, 12 June 2008

I am a javascript noob. I have no idea what is going on.

document.write

document.write("Hello") // - prints Hello
var text="Hello"
document.write(''+text+'') // - prints Hello
var text="Hello"
document.write(''+text+'') // - prints Hello

Array