Jan 30 2010
∞
Things I should have already known but instead learned while writing a JavaScript book
string.match(regexp)andregexp.exec(string)don’t do the same thing when it comes to global pattern matching.event.currentTargetis the element that is listening to the event, so you don’t have to rely onthis.- The
beforeunloadevent. - The difference between
keyCodeandcharCode. - How cookies work (!)
This list will grow.