---
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?\". What Are Functions?\nYou need to add two numbers multiple times in your code.\nWithout functions:\nlet result1 = 5 + 3;\nlet result2 = 10 + 7;\nlet result3 = 15 + 9;\n\nWith a function:\nfunction add(a, b) {"
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-what-s-the-difference/69b681d905c006164cfe3261"
---

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

Discussion

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

What Are Functions? You need to add two numbers multiple times in your code. Without functions: let result1 = 5 + 3; let result2 = 10 + 7; let result3 = 15 + 9; With a function: function add(a, b) {

Mar 15 · 8 min read · techsorcerer.hashnode.dev  
Read the article

## Written by

[Pratham Shah](https://hashnode.com/@pshahlab)

@pshahlab · India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
