Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A actual test file will be created soon
- Loading branch information
Tyler C
committed
May 13, 2011
1 parent
a1388aa
commit cb2b735
Showing
1 changed file
with
1 addition
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,2 @@ | ||
var test = "Mello Hello"; | ||
|
||
if ( 1 == 1 ) { | ||
echo ( "Meh" ); | ||
echo ( "Test" ); | ||
}; | ||
|
||
var nedIsCrazy = function { | ||
echo ( "Running" ); | ||
print ( true ); | ||
return true; | ||
}; | ||
|
||
var status = nedIsCrazy ( ); | ||
|
||
echo ( status ); | ||
|
||
if ( status ) { | ||
echo ( "Test" ); | ||
} | ||
|
||
if ( 2 == 1 ); | ||
|
||
echo ( test ); | ||
|
||
var someFunction = function { | ||
echo ( 98 ); | ||
}; | ||
|
||
echo ( 1 == 1 ); | ||
|
||
someFunction ( ); | ||
|
||
var Math = function { | ||
var amount = argument1; | ||
|
||
var add = function { | ||
return argument1 + amount; | ||
}; | ||
|
||
var subtract = function { | ||
return argument1 - amount; | ||
}; | ||
|
||
var multiply = function { | ||
return argument1 * amount; | ||
}; | ||
|
||
var divide = function { | ||
return argument1 / amount; | ||
}; | ||
|
||
return divide; | ||
|
||
}; | ||
|
||
var t = Math ( 10 ); | ||
return t ( 20 ); | ||
say test; |