mde/js-styleguide — Issue #2: Function declaration
Author: butu5
Created: 2011-12-22 08:20:17+00:00
State: open

```javascript
function checkForTraps(dexterity, level) {
// Do stuff to check for traps here
}
var checkForSecretDoors = function (race, level) {
// Stuff for check here
};
```
Which approach you are suggesting?

John Resig suggest to use later convention.

[1]. http://ejohn.org/blog/javascript-as-a-first-language/ "JavaScript as a First Language"