<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/javascript-arrow-functions-vs-regular-functions-vu6toyel5" -->

---
title: JavaScript Arrow Functions vs Regular Functions | daily.dev
description: Learn the difference between regular function syntax and arrow function syntax in JavaScript, how to access arguments with both types of functions, and when to...
canonical: https://daily.dev/posts/javascript-arrow-functions-vs-regular-functions-vu6toyel5
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: JavaScript Arrow Functions vs Regular Functions | daily.dev
og:description: Learn the difference between regular function syntax and arrow function syntax in JavaScript, how to access arguments with both types of functions, and when to...
og:url: https://daily.dev/posts/javascript-arrow-functions-vs-regular-functions-vu6toyel5
og:image: https://api.daily.dev/og/posts/vu6ToyEl5.png
og:image:alt: JavaScript Arrow Functions vs Regular Functions
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript Arrow Functions vs Regular Functions

**[freeCodeCamp](https://daily.dev/sources/freecodecamp)** · 6 min read · 273 upvotes · 9 comments

## Summary

Learn the difference between regular function syntax and arrow function syntax in JavaScript, how to access arguments with both types of functions, and when to use each type.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.freecodecamp.org/news/regular-vs-arrow-functions-javascript/>

## Community discussion

Top comments from developers on daily.dev.

**@chran0** · 1 upvotes

> Much more concise.

**@sinisterchef** · 0 upvotes

> This is great, Thank you.

**@nowed** · 0 upvotes

> This is a topic that should be spoken more about with Junior devs. Nice one!

**@yagdrassyl** · 0 upvotes

> Good article.
> To add a little bit to the end of the article:
>
> I also believe it's important to mention that, when choosing which one to use, it's important to bring into the picture the developer or whoever is reading the file: sometimes, it's way easier to understand at a glance that a function is a function when the word function appears in the declaration (specially in big files).

**@bishwajit2810** · 0 upvotes

> Great
> But The most important thing is readability and understanding for the upcoming devs.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/javascript-arrow-functions-vs-regular-functions-vu6toyel5)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"JavaScript Arrow Functions vs Regular Functions","url":"https://daily.dev/posts/javascript-arrow-functions-vs-regular-functions-vu6toyel5","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/javascript-arrow-functions-vs-regular-functions-vu6toyel5"},"datePublished":"2024-01-17T07:09:28.159Z","dateModified":"2024-01-17T07:09:27.439Z","description":"Learn the difference between regular function syntax and arrow function syntax in JavaScript, how to access arguments with both types of functions, and when to...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1e4e5f6c4dd37ea9f0971fc367bf451c?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1e4e5f6c4dd37ea9f0971fc367bf451c?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"freeCodeCamp","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"freeCodeCamp","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1628412854/logos/freecodecamp","url":"https://daily.dev/sources/freecodecamp"},"commentCount":9,"discussionUrl":"https://daily.dev/posts/javascript-arrow-functions-vs-regular-functions-vu6toyel5","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":273},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":9}],"keywords":"javascript","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"freeCodeCamp","item":"https://daily.dev/sources/freecodecamp"},{"@type":"ListItem","position":3,"name":"JavaScript Arrow Functions vs Regular Functions"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/javascript-arrow-functions-vs-regular-functions-vu6toyel5","comment":[{"@type":"Comment","text":"Much more concise.","datePublished":"2024-02-07T09:03:21.679Z","url":"https://daily.dev/posts/vu6ToyEl5#c-J7EaGXXPw","author":{"@type":"Person","name":"Christian","url":"https://daily.dev/chran0","image":"https://lh3.googleusercontent.com/a/ACg8ocKZQ_Qp-pQBvC3Eqkcuq7UShzRsIb0BtDrZ_KIiTpYwxw=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"This is great, Thank you.","datePublished":"2024-02-26T19:13:12.476Z","url":"https://daily.dev/posts/vu6ToyEl5#c-xaGDGBrp8","author":{"@type":"Person","name":"Kyle OBrien","url":"https://daily.dev/sinisterchef","image":"https://avatars.githubusercontent.com/u/3700153?v=4"}},{"@type":"Comment","text":"This is a topic that should be spoken more about with Junior devs. Nice one!","datePublished":"2024-02-27T12:55:39.362Z","url":"https://daily.dev/posts/vu6ToyEl5#c-tqkN0YbYk","author":{"@type":"Person","name":"Noud","url":"https://daily.dev/nowed","image":"https://lh3.googleusercontent.com/a/ACg8ocLG-Q52w3OVU_7syl8QPcC2db8MLCnWpXJSWqdcy4eY1LI=s96-c"}},{"@type":"Comment","text":"Good article.\nTo add a little bit to the end of the article:\nI also believe it’s important to mention that, when choosing which one to use, it’s important to bring into the picture the developer or whoever is reading the file: sometimes, it’s way easier to understand at a glance that a function is a function when the word function appears in the declaration (specially in big files).","datePublished":"2024-02-27T00:29:07.265Z","url":"https://daily.dev/posts/vu6ToyEl5#c-d8adOEK7q","author":{"@type":"Person","name":"Zuri","url":"https://daily.dev/yagdrassyl","image":"https://lh3.googleusercontent.com/a-/ACNPEu8dt5serYTosMvsp_SZ49L0jCRrJhTnxt-6lMmMrw=s100"}},{"@type":"Comment","text":"Great\nBut The most important thing is readability and understanding for the upcoming devs.","datePublished":"2024-02-28T04:48:00.921Z","url":"https://daily.dev/posts/vu6ToyEl5#c-IfctITmd9","author":{"@type":"Person","name":"Bishwajit Chakraborty","url":"https://daily.dev/bishwajit2810","image":"https://media.daily.dev/image/upload/s--K-iaDMBo--/f_auto/v1736528820/avatars/avatar_cCDdx4PcEgLwgJdSr4RSJ"}}]}
```

