Modules, introduction by diogoosz · Pull Request #490 · javascript-tutorial/pt.javascript.info
Repository navigation
Modules, introduction - #490
Merged
gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-modules-intro Nov 13, 2026
Merged
Modules, introduction #490 gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-modules-intro
Conversation
diogoosz commented Nov 9, 2026
Copy link Copy Markdown
Contributor
Tradução do artigo "Modules, introduction" para o português.
Conforme comentado na #1 . Obs.: esse título já havia sido reivindicado por @adriavieira314 em fev/2020, sem PR desde então -- estou assumindo a tradução.
Translate "Modules, introduction" article to Portuguese
ccc00d3
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>gabifs reviewed Nov 12, 2026
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
|
|
||
| // 📁 1.js | ||
| import `./alert.js`; // Module is evaluated ! | ||
| import `./alert.js`; // O módulo foi avaliado ! |
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
| ``` | ||
|
|
||
| ### A module code is evaluated only the first time when imported | ||
| ### Um código de módulo é avaliado só na primeira vez em que é importado |
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
| ### Num módulo, o "this" é undefined | ||
|
|
||
| That's kind of a minor feature, but for completeness we should mention it . | ||
| Esse é meio que um recurso secundário, mas, pra ficar completo, devemos mencioná-lo . |
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
| ### Sempre "use strict" | ||
|
|
||
| Modules always work in strict mode. E.g. assigning to an undeclared variable will give an error . | ||
| Módulos sempre funcionam em modo estrito. Ex.: atribuir a uma variável não declarada vai gerar um erro . |
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
| ``` | ||
|
|
||
| ## Build tools | ||
| ## Ferramentas de build |
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
|
|
||
| ```smart | ||
| In the browser, we can make a variable window-level global by explicitly assigning it to a `window` property, e.g. `window.user = "John"`. | ||
| No navegador, podemos tornar uma variável global em nível de window atribuindo-a explicitamente a uma propriedade de `window` , ex.: `window.user = "John"`. |
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
| ```js | ||
| // 📁 alert.js | ||
| alert(" Module is evaluated !"); | ||
| alert(" O módulo foi avaliado !"); |
Apply review feedback from @gabifs
8835b57
- Fix invalid syntax: import `./alert.js`; used backticks instead of a string literal (SyntaxError) - Fix truncated heading "Um código de módulo" -> "O código de um módulo é avaliado..." - Standardize informal "pra"/"pro"/"meio que" to "para"/"para o" - Replace sentence-initial "Ex.:" with "Por exemplo," - Reword the "global at window level" calque - Translate the remaining "Hello"/"Ready to serve" alert strings to match the sibling 02-import-export chapter's convention (Olá / Pronto para atender) - Unify "Ferramentas de build" with "ferramentas de empacotamento"/"empacotadores" used in the rest of the article Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
diogoosz commented Nov 13, 2026
Copy link Copy Markdown
Contributor
Author
|
Obrigado, @gabifs ! Apliquei tudo: corrigi o erro de sintaxe no |
187bfe4
into
javascript-tutorial : master
Nov 13, 2026
1 check passed
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment