---
title: "Discussion on \"Arrow Functions in JavaScript: A Simpler Way to Write Function\" | Hashnode"
description: "Discussion on \"Arrow Functions in JavaScript: A Simpler Way to Write Function\". When you need to create a function in JavaScript, the main method is to use the function keyword followed by the function name as shown below:\nfunction greetings(name) {\n  console.log(`Hello, ${name}!"
url: "https://hashnode.com/posts/arrow-functions-in-javascript-a-simpler-way-to-write-function/69f1a824ad6e531c72737661"
---

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

Discussion

# [Arrow Functions in JavaScript: A Simpler Way to Write Function](https://komalwebdev.hashnode.dev/arrow-functions-in-javascript-a-simpler-way-to-write-function?utm_source=hashnode&utm_medium=feed)

When you need to create a function in JavaScript, the main method is to use the function keyword followed by the function name as shown below: function greetings(name) { console.log(\`Hello, ${name}!

Apr 29 · 3 min read · komalwebdev.hashnode.dev  
Read the article

## Written by

[komal lodhi](https://hashnode.com/@lodhi555)

@lodhi555

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
