◐ Shell
clean mode source ↗

Loops: while and for by andreimuntean1 · Pull Request #171 · javascript-tutorial/ro.javascript.info

This reverts that commit to be able to make a PR with only the translation regarding loops.
This reverts that commit to be able to make a PR with only the translation regarding loops.
This reverts that commit to be able to make a PR with only the translation regarding loops.

bogdanbacosca

Choose a reason for hiding this comment

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

Codul trebuie revizuit pentru formatare corectă. Atenție deosebită la spații, linii și variabile.

De exemplu, bucla de mai jos afișează `i` cât timp `i < 3`:

```js run
```js

Choose a reason for hiding this comment

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

formatare, te rog sa faci la fel pentru fiecare instanță
Dacă apeși ctrl + D după ce ai evidențiat textul... apoi poți șterge și scrie toate erorile de-odată.

@javascript-translate-bot

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

@andreimuntean1

bogdanbacosca

Choose a reason for hiding this comment

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

Trebuie verificare liniile: să nu fie linii șterse sau adăugate.
Trebuie verificat ca formatarea să coincidă cu originalul. (în setări la VSCode trebuie să dezactivezi formatarea automată)

```
Prima valoare este `i = 1` pentru că `++i` incrementează prima dată `i` și apoi returnează noua valoare. Așadar prima comparație este `1 < 5` și funcția `alert` afișează `1`.
2. **De la 1 la 5**

Choose a reason for hiding this comment

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

spațiile dintre linii trebuie lăsate cum sunt, altfel nu se văd bine diferențele dintre texte. vezi git diff

1. The prefix form `++i`:
1. Forma cu prefix `++i`:

```js

Choose a reason for hiding this comment

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

formatare

1. The postfix form:
1. Forma cu sufix:

```js

Choose a reason for hiding this comment

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

formatare

Choose a reason for hiding this comment

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

linii șterse

@javascript-translate-bot

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