Difference between revisions of "Getting Started"

From CodeStuff
Jump to: navigation, search
(Created page with "Here is a simple one line program. <edcode> print("hi there"); </edcode> It has these parts. ;print : The name of the function to perform. JavaScript is case sensitive...")
 
Line 1: Line 1:
 
Here is a simple one line program.
 
Here is a simple one line program.
  
<edcode>  
+
<edcode name="first">  
 
  print("hi there");  
 
  print("hi there");  
 
</edcode>
 
</edcode>
Line 23: Line 23:
 
This is a slightly longer program.
 
This is a slightly longer program.
  
<edcode>  
+
<edcode name="second">  
 
  print("hello");  
 
  print("hello");  
 
  print("I'm bob");  
 
  print("I'm bob");  
 
  print("somewhere else",300,200);  
 
  print("somewhere else",300,200);  
 
</edcode>
 
</edcode>
 
But I need to change the editor to support multiple instances on the one page :-/
 

Revision as of 02:16, 24 January 2012

Here is a simple one line program.



It has these parts.

print
The name of the function to perform. JavaScript is case sensitive so print is considered a different name to Print
( ... )
brackets surrounding the parameters for the print function
" ... "
Quote marks surrounding some text characters
hi there
The text characters themselves
 ;
a semicolon indicating the end of that part of code.

This is a slightly longer program.