---
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?\". 1.What functions are and why we need them\n\nFunctions are reusable blocks of code used to perform a specific task.\n\nFunctions are a set of instructions bundled together to achieve a specific outcome."
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-what-s-the-difference/69b120d2abc0d95001e3addb"
---

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

Discussion

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

1.What functions are and why we need them Functions are reusable blocks of code used to perform a specific task. Functions are a set of instructions bundled together to achieve a specific outcome.

Mar 11 · 2 min read · komalwebdev.hashnode.dev  
Read the article

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

## Written by

[komal lodhi](https://hashnode.com/@lodhi555)

@lodhi555

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
