---
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?\". How A Repetitive Day Turned into a Function\nRohan is learning JavaScript and building a tiny “marks calculator” for his classmates.\nAt first, his code looks like this:\n// calculate total marks three t"
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-what-s-the-difference/69b6c93ef4eb2f8b0498f26e"
---

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

Discussion

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

How A Repetitive Day Turned into a Function Rohan is learning JavaScript and building a tiny “marks calculator” for his classmates. At first, his code looks like this: // calculate total marks three t

Mar 15 · 6 min read · blog-heyvenom.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#function-declaration](https://hashnode.com/tag/function-declaration)
-   [#function-expressions](https://hashnode.com/tag/function-expressions)
-   [#function-declaration-vs-expression](https://hashnode.com/tag/function-declaration-vs-expression)

## Written by

[Durgesh Pandey](https://hashnode.com/@HeyVenom49)

@HeyVenom49

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
