Tag Archives: Nursery Rhymes
Nursery Rhyme Code Poem [JavaScript]
(function() { function BlindMouse() {} BlindMouse.prototype.tail = true; BlindMouse.prototype.run = function(after) {}; function Mice(mouse1, mouse2, mouse3) { this.mice = []; this.mice.push(mouse1, mouse2, mouse3); this.declare = function() { return this.mice.length + ' Blind Mice'; }; this.run = function(after) { for(var j=0,k=this.mice.length;j<k ;j++) { this.mice[j].run(after); } }; this.cutOff = function(prop, weapon) { for(var j=0,k=this.mice.length;j<k;j++) { this.mice[j][prop] [...]
Posted in Artistic, JavaScript Also tagged Code Poem
Nursery Rhyme Code Poem [PHP]
< ?php class I { public __construct() { $star = new Star(); $star->size = 'little'; $star->twinkle(); $star->twinkle(); self::wonder($star, 'What are you?'); $world = new World(); $world->elevation = 'So High'; $star->setAbove($world); $d = new Diamond(); $d->position = 'In the sky'; $star->setLike($d); $star->twinkle(); $star->twinkle(); $star->size; // returns 'little' self::wonder($star, 'What are you?'); [...]


Nursery Rhyme Code Poem [CSS]