From 2c71b379a268febd54e29cddf48585c404139eac Mon Sep 17 00:00:00 2001 From: jonnathan-ls Date: Wed, 29 Jun 2022 00:20:37 -0300 Subject: [PATCH 1/3] feat(steps): translates the article about conditional branching --- .../10-ifelse/1-if-zero-string/solution.md | 8 +- .../10-ifelse/1-if-zero-string/task.md | 6 +- .../2-check-standard/ifelse_task2/index.html | 6 +- .../10-ifelse/2-check-standard/task.md | 6 +- .../10-ifelse/3-sign/if_sign/index.html | 2 +- .../10-ifelse/3-sign/solution.md | 2 +- 1-js/02-first-steps/10-ifelse/3-sign/task.md | 12 +- .../5-rewrite-if-question/solution.md | 2 +- .../10-ifelse/5-rewrite-if-question/task.md | 8 +- .../6-rewrite-if-else-question/solution.md | 6 +- .../6-rewrite-if-else-question/task.md | 16 +- 1-js/02-first-steps/10-ifelse/article.md | 177 +++++++++--------- 12 files changed, 127 insertions(+), 124 deletions(-) diff --git a/1-js/02-first-steps/10-ifelse/1-if-zero-string/solution.md b/1-js/02-first-steps/10-ifelse/1-if-zero-string/solution.md index 51f1d4680..f4375ba37 100644 --- a/1-js/02-first-steps/10-ifelse/1-if-zero-string/solution.md +++ b/1-js/02-first-steps/10-ifelse/1-if-zero-string/solution.md @@ -1,12 +1,12 @@ -**Yes, it will.** +**Sim vai.** -Any string except an empty one (and `"0"` is not empty) becomes `true` in the logical context. +Qualquer string exceto uma vazia (e `"0"` não está vazia) se torna `true` no contexto lógico. -We can run and check: +Podemos executar e verificar: ```js run if ("0") { - alert( 'Hello' ); + alert( 'Olá' ); } ``` diff --git a/1-js/02-first-steps/10-ifelse/1-if-zero-string/task.md b/1-js/02-first-steps/10-ifelse/1-if-zero-string/task.md index 5f16cda85..20c44f50a 100644 --- a/1-js/02-first-steps/10-ifelse/1-if-zero-string/task.md +++ b/1-js/02-first-steps/10-ifelse/1-if-zero-string/task.md @@ -2,13 +2,13 @@ importance: 5 --- -# if (a string with zero) +# f (uma string com zero) -Will `alert` be shown? +O `alert` será exibido? ```js if ("0") { - alert( 'Hello' ); + alert( 'Olá' ); } ``` diff --git a/1-js/02-first-steps/10-ifelse/2-check-standard/ifelse_task2/index.html b/1-js/02-first-steps/10-ifelse/2-check-standard/ifelse_task2/index.html index ea9966653..c170a38e7 100644 --- a/1-js/02-first-steps/10-ifelse/2-check-standard/ifelse_task2/index.html +++ b/1-js/02-first-steps/10-ifelse/2-check-standard/ifelse_task2/index.html @@ -5,12 +5,12 @@ diff --git a/1-js/02-first-steps/10-ifelse/2-check-standard/task.md b/1-js/02-first-steps/10-ifelse/2-check-standard/task.md index 565396cda..898f7eec0 100644 --- a/1-js/02-first-steps/10-ifelse/2-check-standard/task.md +++ b/1-js/02-first-steps/10-ifelse/2-check-standard/task.md @@ -2,11 +2,11 @@ importance: 2 --- -# The name of JavaScript +# O nome do JavaScript -Using the `if..else` construct, write the code which asks: 'What is the "official" name of JavaScript?' +Usando a construção `if..else`, escreva o código que pergunta: 'Qual é o nome "oficial" do JavaScript?' -If the visitor enters "ECMAScript", then output "Right!", otherwise -- output: "You don't know? ECMAScript!" +Se o visitante digitar "ECMAScript", então chame a função alerta passando como valor: "correto!", caso contrário -- registre a seguinte mensagem: "Você não sabe? ECMAScript!" ![](ifelse_task2.svg) diff --git a/1-js/02-first-steps/10-ifelse/3-sign/if_sign/index.html b/1-js/02-first-steps/10-ifelse/3-sign/if_sign/index.html index f168360dd..ab8e22c8a 100644 --- a/1-js/02-first-steps/10-ifelse/3-sign/if_sign/index.html +++ b/1-js/02-first-steps/10-ifelse/3-sign/if_sign/index.html @@ -6,7 +6,7 @@