javascript-tutorial / javascript-tutorial/en.javascript.info
Clarify Explanation of Function Expressions in JavaScript Tutorial
Personne n'a encore pris cette issue.
- Langage dominant
- HTML
- Étoiles
- 25.5k
- Forks
- 4k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Description: The section of the tutorial discussing function expressions could benefit from a clearer distinction between Function Declarations and Function Expressions. Currently, the wording may cause confusion by implying that a Function Declaration creates a "variable" to hold the function name, which isn’t technically accurate.
Suggested Changes: In the tutorial, this line:
"The Function Declaration (1) creates the function and puts it into the variable named sayHi."
Might be more accurately phrased as:
"The Function Declaration (1) creates a function with the name sayHi. Unlike a Function Expression, this doesn’t involve a variable assignment."
This change would help learners understand that sayHi in this example is the function’s name from the declaration, rather than a variable containing the function reference.
Additional Context: I initially misunderstood this as creating a variable. I believe this clarification would prevent similar confusion for others. Thanks for considering this suggestion!
See screenshot attached

Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez dans la section du tutoriel JavaScript consacrée aux Function Expressions et repérez la phrase citée qui compare les Function Declarations à une affectation de variable. Mettez à jour la formulation afin de distinguer le nom de fonction d'une déclaration de l'affectation de variable d'une Function Expression, puis vérifiez la clarté du tutoriel rendu.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100