---
title: "Discussion on \"Function In  Javascript:\" | Hashnode"
description: "Discussion on \"Function In  Javascript:\". The function is a block of code designed to perform some particular task\nfunction myFunction(p1, p2) {\n  return p1 * p2;\n}\n\nAnonymous functions:\nIn this, we can declare a function in the form of a variable, and hence can remove the name of function a..."
url: "https://hashnode.com/posts/function-in-javascript/6459d52b67cbd7eea278e9f1"
---

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

Discussion

# [Function In Javascript:](https://dynamitee.hashnode.dev/function-in-javascript?utm_source=hashnode&utm_medium=feed)

The function is a block of code designed to perform some particular task function myFunction(p1, p2) { return p1 \* p2; } Anonymous functions: In this, we can declare a function in the form of a variable, and hence can remove the name of function a...

May 9, 2023 · 2 min read · dynamitee.hashnode.dev  
Read the article

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

## Written by

[Abhinav Pandey](https://hashnode.com/@abhinavp)

@abhinavp

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

Stay motivated and never stop....

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
