# Function forms

DevFeed: [Function forms](<https://devfeed.tech/articles/function-forms-51768.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/function-forms>)

Published: 2020-04-05T00:00:00Z

Content type: article

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [function](<https://devfeed.tech/topics/function.md>), [React](<https://devfeed.tech/topics/react.md>), [callback](<https://devfeed.tech/topics/callback.md>), [debugging](<https://devfeed.tech/topics/debugging.md>)

Tags: [callback](<https://devfeed.tech/tags/callback.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [function](<https://devfeed.tech/tags/function.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [react](<https://devfeed.tech/tags/react.md>)

## AI overview

A discussion of when to use JavaScript function declarations, function expressions, arrow functions, and object methods, including considerations such as callbacks, hoisting, implicit returns, lexical scope, and debugging.

## Source excerpt

When I prefer to use function declarations instead of arrow functions