Last week I talked about JavaScript variables gotchas. This week, we want to take an in-depth look at JavaScript functions. Why? Well, for the same reason we looked at variables last week. If you keep using JavaScript the way you think it works instead of the way it really works, at best, you will have a much harder time debugging your JavaScript code. Worse case, you introduce some pretty nasty bugs into your code. So, let’s start with a pretty basic JavaScript function question. One I would use as a question if I were interviewing someone for a hardcore JavaScript job.
Full article