---
title: "Discussion on \"Function Declaration vs Function Expression: What’s the Difference?\n\" | Hashnode"
description: "Discussion on \"Function Declaration vs Function Expression: What’s the Difference?\n\". When writing JavaScript programs, we often repeat certain pieces of code. Instead of rewriting the same logic again and again, we can place it inside a function.\nA function is simply a reusable block"
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-what-s-the-difference/69b59631210c74252f0e138f"
---

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

Discussion

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

When writing JavaScript programs, we often repeat certain pieces of code. Instead of rewriting the same logic again and again, we can place it inside a function. A function is simply a reusable block

Mar 14 · 4 min read · zubairjaved.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#cohort2026](https://hashnode.com/tag/cohort2026)

## Written by

[Noushin I](https://hashnode.com/@zubairjaved)

@zubairjaved

  
[View profile](https://hashnode.com/@zubairjaved)

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
