---
title: "Discussion on \"Arrow Function Best Practice\" | Hashnode"
description: "Discussion on \"Arrow Function Best Practice\". When this is used in an arrow function, this will be the this value in the surrounding lexical scope.\nArrow functions change MANY things, so there are two best practices you need to know.\n\nDon’t create methods with arrow functions\nCreate functions IN..."
url: "https://hashnode.com/posts/arrow-function-best-practice/5f06a72cec52711af78afd54"
---

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

Discussion

# [Arrow Function Best Practice](https://hashnode.com/post/arrow-function-best-practice?utm_source=hashnode&utm_medium=feed)

When this is used in an arrow function, this will be the this value in the surrounding lexical scope. Arrow functions change MANY things, so there are two best practices you need to know. Don’t create methods with arrow functions Create functions IN...

Jul 9, 2020 · 4 min read · hashnode.com  
Read the article

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

## Written by

[Zell Liew](https://hashnode.com/@zellwk)

@zellwk · Singapore

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

Just a developer :)

I'm just a developer who loves to share what I discovered. I primarily blog at http://zellwk.com and cross-post to this website :)

## Responses 1

Markdown supported · ⌘↵ to post

[Francisco Quintero](https://hashnode.com/@cesc1989)

[Jul 9, 2020](https://hashnode.com/posts/arrow-function-best-practice/5f06a72cec52711af78afd54/comment/5f077ba445d31f2b5703a144)

Very nice article.

Question: Why create a function within/inside a method (besides the example provided here)?
