Skip to content

translated code structure#49

Merged
bogdanbacosca merged 2 commits intojavascript-tutorial:masterfrom
hadamariaa:feature/code-structure-ok
Nov 27, 2022
Merged

translated code structure#49
bogdanbacosca merged 2 commits intojavascript-tutorial:masterfrom
hadamariaa:feature/code-structure-ok

Conversation

@hadamariaa
Copy link
Copy Markdown
Contributor

No description provided.

@javascript-translate-bot javascript-translate-bot requested a review from a team January 18, 2020 19:32
@hadamariaa hadamariaa requested review from 1H0 and iliakan and removed request for a team January 18, 2020 19:32
```

Here, JavaScript interprets the line break as an "implicit" semicolon. This is called an [automatic semicolon insertion](https://tc39.github.io/ecma262/#sec-automatic-semicolon-insertion).
Aici, JavaScript interpretează întreruperea liniei ca punct și virgulă „implicit”. Aceasta se numește [introducerea automata a punctului și virgulei](https://tc39.github.io/ecma262/#sec-automatic-semicolon-insertion).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing diacritics : "automata" --> "automată"

**În cele mai multe cazuri, o linie nouă implică punct și virgulă. Dar „în majoritatea cazurilor” nu înseamnă „întotdeauna!**

There are cases when a newline does not mean a semicolon. For example:
Sunt cazuri când o linie nouă nu înseamna un punct și virgulă. De exemplu:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing diacritics : "înseamna" --> "înseamnă"

```

The code outputs `6` because JavaScript does not insert semicolons here. It is intuitively obvious that if the line ends with a plus `"+"`, then it is an "incomplete expression", so the semicolon is not required. And in this case that works as intended.
Codul va afișa `6` deoarece JavaScript nu inserează punct și virgulă aici. Este intuitiv evident că, dacă linia se termină cu un plus `"+"`, atunci este o "expresie incompletă", deci punctul si virgula nu este necesar. Și în acest caz, funcționează așa cum este intenționat
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing diacritics : "punctul si virgula" --> "punctul și virgula"

Please add period at the end (.)

````smart header="An example of an error"
If you're curious to see a concrete example of such an error, check this code out:
````smart header="Exemplu de eroare"
Dacă sunteți curios să vedeți un exemplu concret de astfel de eroare, verificați acest cod:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Proposal :

I think we shouldn't be too formal in our articulation. Maybe we could go for something like "Dacă ești curios să vezi...".

```smart header="Use hotkeys!"
In most editors, a line of code can be commented out by pressing the `key:Ctrl+/` hotkey for a single-line comment and something like `key:Ctrl+Shift+/` -- for multiline comments (select a piece of code and press the hotkey). For Mac, try `key:Cmd` instead of `key:Ctrl`.
```smart header="Folosiți tastele rapide!"
În majoritatea editorilor, o linie de cod poate fi comentată apăsând tasta `key:Ctrl+/` pentru un comentariu pe o singură linie și `key:Ctrl+Shift+/` -- pentru comentarii pe mai multe linii (selectați o bucată de cod și apăsați tasta rapidă). Pentru Mac, încercați `key:Cmd` în loc de `key:Ctrl`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Grammar suggestion : "editorilor" --> "editoarelor"

@javascript-translate-bot
Copy link
Copy Markdown

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

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 29, 2022

CLA assistant check
All committers have signed the CLA.

@bogdanbacosca bogdanbacosca merged commit 9810824 into javascript-tutorial:master Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants