GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Conditional branching: if, '?' by jonnathan-ls · Pull Request #246 · javascript-tutorial/pt.javascript.info

Conversation

@jonnathan-ls

@jonnathan-ls jonnathan-ls commented Jun 29, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Conditional branching: if, '?'

📝 Goal

Article translation

☑ What was done?

  • Translation of the article
  • Translation of the exercises
  • Translation of the SVG image

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jonnathan-ls
feat(steps): translates the article about conditional branching
2c71b37
@javascript-translate-bot javascript-translate-bot added the review needed label Jun 29, 2022
@javascript-translate-bot
javascript-translate-bot requested a review from a team June 29, 2022 03:31
@jonnathan-ls jonnathan-ls changed the title WIP: Conditional branching: if, '?' WIP Conditional branching: if, '?' Jun 29, 2022
@jonnathan-ls

jonnathan-ls commented Jun 29, 2022

Copy link
Copy Markdown
Contributor Author

🚧 work in progress

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jonnathan-ls added 2 commits July 7, 2022 00:01
@jonnathan-ls
Merge branch 'master' of https://github.com/jonnathan-ls/pt.javascrip…
ad77bb6
…t.info into feature/steps-ifelse
@jonnathan-ls
feat(first-steps): translates the images of article about conditional…
6cad86f
… branching
@jonnathan-ls jonnathan-ls changed the title WIP Conditional branching: if, '?' Conditional branching: if, '?' Jul 7, 2022
@jonnathan-ls

jonnathan-ls commented Jul 7, 2022

Copy link
Copy Markdown
Contributor Author

✅ Ready for review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonnathan-ls jonnathan-ls mentioned this pull request Aug 13, 2022
Portuguese Translation Progress #1
Open
odsantos
odsantos requested changes Dec 6, 2022
View reviewed changes

@odsantos odsantos left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, Please fell free to tell where you disagree. Thanks, Osvaldo.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/1-if-zero-string/task.md Outdated
---

# if (a string with zero)
# f (uma “string” com zero)

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# f (uma “string” com zero)
# if (uma “string” com zero)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/2-check-standard/task.md Outdated
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!"

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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!"
Se o visitante digitar "ECMAScript", então chame a função `alert` passando como valor: "Correto!", caso contrário -- registre a seguinte mensagem: "Você não sabe? ECMAScript!"

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/3-sign/task.md Outdated
---

# Show the sign
# Mostra o sinal

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Mostra o sinal
# Mostre o sinal

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/3-sign/task.md Outdated
- `0`, if equals zero.
- `1`, se o valor for maior que zero,
- `-1`, se menor que zero,
- `0`, se for igual a zero.

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `0`, se for igual a zero.
- `0`, se igual a zero.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/article.md
# Ramificação condicional: if, '?'

Sometimes, we need to perform different actions based on different conditions.
Às vezes, precisamos realizar ações diferentes com base em condições diferentes.

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Às vezes, precisamos realizar ações diferentes com base em condições diferentes.
Às vezes, precisamos de realizar ações diferentes com base em condições diferentes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jonnathan-ls jonnathan-ls Mar 26, 2023

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Não acho que a preposição de se encaixa corretamente entre a expressão precisamos realizar

Avaliando a tradução literal:

image

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/article.md Outdated
The so-called "conditional" or "question mark" operator lets us do that in a shorter and simpler way.
O chamado operador "condicional" ou "ponto de interrogação" nos permite fazer isso de uma forma curta e simples.

O operador é representado por um ponto de interrogação `?`. Às vezes referênciado como "ternário", porque o operador possui três operandos. Na verdade, é o único operador em JavaScript que possui tantos. Na verdade, é o único operador em JavaScript que possui tantas possibilidades de operandos.

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
O operador é representado por um ponto de interrogação `?`. Às vezes referênciado como "ternário", porque o operador possui três operandos. Na verdade, é o único operador em JavaScript que possui tantos. Na verdade, é o único operador em JavaScript que possui tantas possibilidades de operandos.
O operador é representado por um ponto de interrogação `?`. Às vezes é chamado de "ternário", porque o operador possui três operandos. Na verdade, é o único operador em JavaScript que possui tantos.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/article.md Outdated

```js run no-beautify
let company = prompt('Which company created JavaScript?', '');
let company = prompt('Qual empresa criou o JavaScript?', '');

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let company = prompt('Qual empresa criou o JavaScript?', '');
let company = prompt('Que empresa criou o JavaScript?', '');

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/article.md Outdated
**Não é recomendado usar o operador de ponto de interrogação dessa maneira.**

The notation is shorter than the equivalent `if` statement, which appeals to some programmers. But it is less readable.
A notação é mais curta do que a instrução `if` equivalente, que atrai alguns programadores. Mas é menos legível.

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
A notação é mais curta do que a instrução `if` equivalente, que atrai alguns programadores. Mas é menos legível.
A notação é mais curta do que a instrução `if` equivalente, o que atrai alguns programadores. Mas é menos legível.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/article.md Outdated

```js run no-beautify
let company = prompt('Which company created JavaScript?', '');
let company = prompt('Qual empresa criou o JavaScript?', '');

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let company = prompt('Qual empresa criou o JavaScript?', '');
let company = prompt('Que empresa criou o JavaScript?', '');

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/02-first-steps/10-ifelse/article.md
Nossos olhos escaneiam o código verticalmente. Blocos de código que abrangem várias linhas são mais fáceis de entender do que um conjunto de instruções longo e horizontal.

The purpose of the question mark operator `?` is to return one value or another depending on its condition. Please use it for exactly that. Use `if` when you need to execute different branches of code.
O objetivo do operador de ponto de interrogação `?` é retornar um valor ou outro dependendo de sua condição. Por favor, use-o exatamente para isso. Use `if` quando precisar executar diferentes ramificações de código.

@odsantos odsantos Dec 6, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
O objetivo do operador de ponto de interrogação `?` é retornar um valor ou outro dependendo de sua condição. Por favor, use-o exatamente para isso. Use `if` quando precisar executar diferentes ramificações de código.
O objetivo do operador de ponto de interrogação `?` é retornar um valor ou outro dependendo de sua condição. Por favor, use-o exatamente para isso. Use `if` quando precisar de executar diferentes ramificações de código.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jonnathan-ls jonnathan-ls Mar 26, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semelhante a https://github.com/javascript-tutorial/pt.javascript.info/pull/246/files#r1148666022

Sem a preposição fica o mais próximo da tradução literal:

image

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@javascript-translate-bot javascript-translate-bot removed the review needed label Dec 6, 2022
@javascript-translate-bot

javascript-translate-bot commented Dec 6, 2022

Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@javascript-translate-bot javascript-translate-bot added the changes requested label Dec 6, 2022
@odsantos

odsantos commented Dec 16, 2022

Copy link
Copy Markdown
Contributor

Hi @jonnathan-ls ,

I updated to the English version.
As part of the pending tasks could you also resolve the conflicts?

Thanks,
Osvaldo.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jonnathan-ls added 2 commits March 26, 2023 19:54
@jonnathan-ls
Merge branch 'master' of https://github.com/jonnathan-ls/pt.javascrip…
203e90c
…t.info into feature/steps-ifelse
@jonnathan-ls
refactor: corrige sugestões conforme code review #pullrequestreview-1…
f38a7d5
…207296036

Code Review: javascript-tutorial#246 (review)
@jonnathan-ls

jonnathan-ls commented Mar 26, 2023

Copy link
Copy Markdown
Contributor Author

Hi @jonnathan-ls ,

I updated to the English version. As part of the pending tasks could you also resolve the conflicts?

Thanks, Osvaldo.

@odsantos conflitos resolvidos.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonnathan-ls

jonnathan-ls commented Mar 26, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Hi, Please fell free to tell where you disagree. Thanks, Osvaldo.

@odsantos
Correções realizadas.

Apenas algumas sugestões relacionadas a preposição "de", pois entendo que fica um pouco estranho para o leitor.

  • Conditional branching: if, '?' #246 (comment)
  • Conditional branching: if, '?' #246 (comment)
  • Conditional branching: if, '?' #246 (comment)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonnathan-ls

jonnathan-ls commented Apr 2, 2023

Copy link
Copy Markdown
Contributor Author

/done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@javascript-translate-bot javascript-translate-bot added review needed and removed changes requested labels Apr 2, 2023
@javascript-translate-bot
javascript-translate-bot requested a review from a team April 2, 2023 20:35
@nazarepiedady

nazarepiedady commented Dec 15, 2023

Copy link
Copy Markdown
Member

@jonnathan-ls have you time to update this translation and correct its conflicts?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonnathan-ls

jonnathan-ls commented Dec 15, 2023

Copy link
Copy Markdown
Contributor Author

@jonnathan-ls have you time to update this translation and correct its conflicts?

Sure, I'll do it on the weekend

nazarepiedady reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nazarepiedady

nazarepiedady commented Dec 15, 2023

Copy link
Copy Markdown
Member

@jonnathan-ls I also recommend looking at all your pull requests to see what more needs to be done to let the pull request fine be applied.

jonnathan-ls reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonnathan-ls
Merge branch 'master' of https://github.com/javascript-tutorial/pt.ja…
2f76d90
…vascript.info into feature/steps-ifelse
@jonnathan-ls

jonnathan-ls commented Dec 16, 2023

Copy link
Copy Markdown
Contributor Author

Conflicts resolved @nazarepiedady

@odsantos awaiting analysis of the corrections I made according to your review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nazarepiedady

nazarepiedady commented Dec 23, 2023

Copy link
Copy Markdown
Member

@jonnathan-ls Are all reviews requested by @odsantos resolved?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonnathan-ls

jonnathan-ls commented Dec 23, 2023

Copy link
Copy Markdown
Contributor Author

Are all reviews requested by @odsantos resolved?

Yes, i am waiting his to review again

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonnathan-ls

jonnathan-ls commented Dec 23, 2023

Copy link
Copy Markdown
Contributor Author

/done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nazarepiedady
nazarepiedady merged commit a1de0f9 into javascript-tutorial:master Dec 23, 2023
@javascript-translate-bot

javascript-translate-bot commented Dec 23, 2023

Copy link
Copy Markdown

Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@odsantos odsantos odsantos requested changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

review needed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@jonnathan-ls @javascript-translate-bot @odsantos @nazarepiedady
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.