---
title: "Functions in Javascript, Function Expression, JavaScript, First class"
url: https://daily.dev/posts/functions-in-javascript-function-expression-javascript-first-class-gqp3lczsz
source_url: https://faheemkhan97.hashnode.dev/function-in-javascript-a-complete-guide-for-beginners
type: article
source: "Hashnode"
author: "FAHEEM KHAN"
published: 2021-07-18T08:54:43.943Z
updated: 2021-10-07T14:17:10.317Z
tags: ["javascript", "logging"]
reading_time: 4
upvotes: 14
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Functions in Javascript, Function Expression, JavaScript, First class

**[Hashnode](https://daily.dev/sources/hashnode)** · [@faheem_khan](https://daily.dev/faheem_khan) · 4 min read · 14 upvotes · 1 comments

## Summary

function is a block of statements, which is written to perform a particular task. A function declaration is also termed as Function Statement. When we create a function and assigned to a variable like any other value then it is called function expression. In Javascript, functions are first-class citizens, meaning functions can be treated like any else.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://faheemkhan97.hashnode.dev/function-in-javascript-a-complete-guide-for-beginners>

## Community discussion

Top comments from developers on daily.dev.

**@pasujemito** · 0 upvotes

> Hoisting made simple here! 🔥

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#logging](https://daily.dev/tags/logging)

[View this post on daily.dev](https://daily.dev/posts/functions-in-javascript-function-expression-javascript-first-class-gqp3lczsz)
