RUBY
Array
Definition
An ordered container. Key to the container is always a number starting at 0.
Examples
[ ]
[1, 2, 3, 4, 5]
["Red", "Blue", "Green"]
[1, 2, "Freddy", "Is Coming", "For You!"]
Links
Hash
Definition
An ordered container of key => value pairs. Where values AND keys can be set.
Examples
{ }
{"Blue" => [1, 2, 3, 4]}
{"Batman" => "Robin", "Lone Ranger" => "Tonto"}
{12:"Eggs", 11:"Ace", 10:"Pins"}
Links
Loop
Definition
Executing a block as long as conditions are met. Looping stops after conditions change.
Examples
#while
#for
#until
Method
Definition
Statement bound in a single unit. Used for one object to talk to another.
Examples
def method_name(arg)
  arg + 2
end
To call method: method_name(12);
See Also
JavaScript
Array
Definition
An ordered container. Key to the container is always a number starting at 0.
Examples
[ ]
[1, 2, 3, 4, 5]
["Red", "Blue", "Green"]
[1, 2, "Freddy", "Is Coming", "For You!"]
Links
Function
Definition
Statement bound in a single unit. Used for one object to talk to another.
Examples
function name(arg){
  arg + 2
}
To call function: function(12);
Links
Loop
Definition
Executing a block as long as conditions are met. Looping stops after conditions change.
Examples
for (var x = 0; x < 10; x++){ };
for (x in y)
#while
Object
Definition
An ordered container of key => value pairs. Where values AND keys can be set.
Examples
{ }
{"Blue" => [1, 2, 3, 4]}
{"Batman" => "Robin", "Lone Ranger" => "Tonto"}
{12:"Eggs", 11:"Ace", 10:"Pins"}
Links
Object Method
Definition
A function set as a value in an object.
Examples
object_name = {
  object_key : function(){BLOCK};
}
SEE ALSO: Function, Object