Thursday, February 8th, 2007

Delving into JavaScript’s prototype member

Category: Articles, JavaScript

Raphael Bauduin has been playing with the Javascript prototype member in order to get an Understanding of Javascript’s prototype member.

After he saw Doug Crockfords Advanced JavaScript presentation he cracked open Rhino and started playing.

Take a peak at the ride:


  1. second_hoozit.toString                //
  2. second_hoozit.__proto__.toString //
  3. Hoozit.prototype.toString            //
  4. my_hoozit.__proto__.toString     //

Posted by Dion Almaer at 6:52 am

2.7 rating from 27 votes


Comments feed TrackBack URI

FYI. The __proto__ property is for Mozilla only.

Comment by Dean Edwards — February 8, 2007

Douglas Crockford doesn’t actually know that much about what he’s talking about I’d like to point out…

Not only that but what the hell is with ‘hoozit’… never seen a worse convention in my life…

Comment by Luke — February 8, 2007

‘gizmo’, ‘hoozit’… i’m a little suprised i didnt see you caching scope in a variable called ‘that’ because that is the only thing worse than that convention….hmmn…i think i just made my point.

Douglas Crockford’s not quite the expert he thinks he is.

Comment by Mitchell Beaumont — February 8, 2007

Come on guys, never heard of “Whoozits and Whatzits”? Using it as a naming convention makes no less sense than using Foo and Bar.

Comment by anonymous — February 9, 2007

Leave a comment

You must be logged in to post a comment.