---
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?\". When writing JavaScript programs, we often repeat the same tasks.\nExample:\n\nAdding two numbers\n\nPrinting a greeting\n\nCalculating totals\n\n\nInstead of writing the same code again and again, we use funct"
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-what-s-the-difference/69b6f507f4eb2f8b04c4eedd"
---

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

Discussion

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

When writing JavaScript programs, we often repeat the same tasks. Example: Adding two numbers Printing a greeting Calculating totals Instead of writing the same code again and again, we use funct

Mar 15 · 4 min read · shivaramwebdev.hashnode.dev  
Read the article

## Written by

[Shivaram Thalloju](https://hashnode.com/@ShivaramWebdev)

@ShivaramWebdev

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

I write code

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
