Sam wrote: > Is it easy to explain the difference between a hash > > var myHash = {a: 'value for a'} > > and an object > > var myObject = {a: 'value for a'}
There is no difference between those. They are both associative arrays (hashes). --------------------------------------------------- Since prototype.js has Object and Hash methods, maybe my question should have been something like: "What is the reasoning behind why prototype offers different properties and methods for Hash and Object types?" Sam _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs