From f412a6ec1584dd0e24132ca94978cd0f419dfef5 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 8 Dec 2022 17:33:22 +0100 Subject: [PATCH] fix comment --- client/docs/styleguide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/docs/styleguide.md b/client/docs/styleguide.md index b0b07186d17..c86d671a6e8 100644 --- a/client/docs/styleguide.md +++ b/client/docs/styleguide.md @@ -33,7 +33,7 @@ Do not abbreviate. This includes naming `variables`, `functions` and `modules`. There are several ways to define functions in JavaScript. ```js -// function keyword +// named function function myFunction(param) { // do stuff } @@ -52,9 +52,9 @@ const myFunction = function(param) { Only use the first two. `anonymous functions` have mostly been superseded by `arrow functions` -### When to use the function keyword +### When to use the named functions -Use the function keyword in the top-level module scope and to declare class methods. +Use named functions in the top-level module scope and to declare class methods. > **Reason** >