---
title: "Discussion on \"Function Declaration vs Function Expression: What’s the Difference?\" | Hashnode"
description: "Discussion on \"Function Declaration vs Function Expression: What’s the Difference?\". A beginner developer writes a small piece of code to add two numbers. It works perfectly. A few minutes later, they need the same logic again in another part of the program. Instead of rewriting the s"
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-what-s-the-difference/69b6e8f6f4eb2f8b04b9ce68"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Function Declaration vs Function Expression: What’s the Difference?](https://functionsinformation.hashnode.dev/function-declaration-vs-function-expression-what-s-the-difference?utm_source=hashnode&utm_medium=feed)

A beginner developer writes a small piece of code to add two numbers. It works perfectly. A few minutes later, they need the same logic again in another part of the program. Instead of rewriting the s

Mar 15 · 5 min read · functionsinformation.hashnode.dev  
Read the article

-   [#function-declaration](https://hashnode.com/tag/function-declaration)
-   [#function-statement](https://hashnode.com/tag/function-statement)
-   [#function-expressions](https://hashnode.com/tag/function-expressions)

## Written by

[Ashraf Raza](https://hashnode.com/@an-ashraf)

@an-ashraf · Mumbai, India

  
[View profile](https://hashnode.com/@an-ashraf)

seeker for coding

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
