---
title: "Discussion on \"Function Declaration vs Function Expression\" | Hashnode"
description: "Discussion on \"Function Declaration vs Function Expression\". Function Declaration:\nA function declaration defines a function with the specified parameters. The function declarations are processed before the code block is executed. They are visible everywhere in the block.\nfunction sayHi () {\n    ...some code h..."
url: "https://hashnode.com/posts/function-declaration-vs-function-expression/6287d99a9490454c4d846c8b"
---

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

Discussion

# [Function Declaration vs Function Expression](https://yaswanthmyneni.hashnode.dev/function-declaration-vs-function-expression?utm_source=hashnode&utm_medium=feed)

Function Declaration: A function declaration defines a function with the specified parameters. The function declarations are processed before the code block is executed. They are visible everywhere in the block. function sayHi () { ...some code h...

May 20, 2022 · 2 min read · yaswanthmyneni.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Yaswanth Myneni](https://hashnode.com/@yaswanthmyneni)

@yaswanthmyneni · India

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

Computer Science Graduate

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
