Reorganize the JavaScript Basic syntax. Moved everything into the repository.

This commit is contained in:
Thomas Aylott
2008-07-07 12:09:58 -04:00
parent 3e3082b4d4
commit dad2829a89
2 changed files with 695 additions and 551 deletions
File diff suppressed because it is too large Load Diff
+26
View File
@@ -1,3 +1,18 @@
// Root
//
// =============
// = FUNCTIONS =
// =============
@@ -31,6 +46,17 @@ var funkName=new Function("argument1", "argument2", "return argument1 + argument
var funkName1 = function funkName (argument1, argument2) {return argument1 + argument1;};
var funkName1=function funkName(argument1,argument2){return argument1 + argument1;};
function myFunc(argument1, argument2){}
Sound.prototype = {}
Sound.prototype.play = function(){}
Sound.prototype.play = myfunc
Sound.play = function(){}
var objectName = {
foobar: function(){},
'foo': function(){},
"foo": function(){}
}
// ===================
// = OBJECT LITERALS =