What I did at work today

Jan 30 2010

Things I should have already known but instead learned while writing a JavaScript book

  • string.match(regexp) and regexp.exec(string) don’t do the same thing when it comes to global pattern matching.
  • event.currentTarget is the element that is listening to the event, so you don’t have to rely on this.
  • The beforeunload event.
  • The difference between keyCode and charCode.
  • How cookies work (!)

This list will grow.

Page 1 of 1