javascript-tutorial / javascript-tutorial/en.javascript.info
Clarify Explanation of Function Expressions in JavaScript Tutorial
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- HTML
- Estrelas
- 25.5k
- Forks
- 4k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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

Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece na seção do tutorial de JavaScript sobre Function Expressions e localize a frase citada que compara Function Declarations com a atribuição a uma variável. Atualize a redação para distinguir o nome da função de uma declaração da atribuição a uma variável de uma Function Expression e, em seguida, verifique a clareza do tutorial renderizado.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript
- Domínio
- documentation
- Tipo de issue
- Documentação
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 55/100