Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Ok, one more time… should I be naming functions?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #181097
    nixnerd
    Participant

    So, I generally name a function. But I heard some people just store functions in variables. But then I hit up the IRC channel and they said that can be problematic for debugging and I should be doing both?? What?

    So, I ask you CSS-Tricks: What should I be doing?

    Also, much talk of hoisting was going on. Not really sure I understand it.

    #181107
    __
    Participant

    I think you know my view. But do whatever feels best for you, and whatever you understand most clearly. Honestly, I’ve never had problems figuring out debugging without named functions.

    Hoisting: about 3½ minutes in. The rest of it is well worth watching too.

    #181108
    nixnerd
    Participant

    What would the case be for doing both?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.