Ray's public fiddles
-
39brt
Mootools 1.4.5, HTML, CSS, JavaScript
-
An illustration of "private" variables : non-constructor version
A small example of a data type with a "property" that can only be accessed via methods.
-
An illustration of "private" variables : constructor version
A small example of a data type with a "property" that can only be accessed via methods.
-
Inheritance
An approach to JavaScript inheritance in which type objects are prototypes and creation functions are properties just like other methods.
-
ECMAScript Globals
An experiment to see whether the global variables of ECMAScript are reassignable.
-
Inheritance with operator new
The traditional (ES3 and earlier) approach to inheritance in JavaScript.
-
Shapes using operator new
Some JavaScript shape objects implemented with operator new, with unit tests, of course
-
Shapes with Object.create
Some JavaScript shape objects implemented with Object.create, with unit tests, of course
-
Shallow or Deep Binding?
A JavaScript implementation of Michael L. Scott's shallow/deep binding tester
-
JavaScript median of three
Three ways to compute the median-of-three in JavaScript
-
Nested Canvas Squares
Small hack to show 30 nested squares in JavaScript using Canvas