What I learned about JavaScript today

In my post on the improved currency conversion card, I mentioned that one of the things I liked about Ruby was how it lets me add methods to predefined classes, like Numeric and String. It turns out JavaScript will let you do that, too, something I learned watching the Douglas Crockford JavaScript videos. (The link is to a page that has the whole series of videos on one page. You might prefer watching them at a larger size on Yahoo’s video site. Search on “douglas crockford.”)

Had I known this, I might have written the Caesar cipher and Vignére cipher routines as String methods instead of standalone functions. Live and learn.