Skip to content

Variables #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Dec 6, 2022
Merged

Conversation

Alexandra2888
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Dec 1, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@bogdanbacosca bogdanbacosca left a comment

Choose a reason for hiding this comment

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

Excelent, mai avem doar putin de lustruit la el și după este gata pentru merge.
Rog doar să vă mai uitați odata la ordinea liniilor și să țineți cont de recomandari.

@@ -1,4 +1,4 @@
In the code below, each line corresponds to the item in the task list.
În codul următor, fiecare linie corespunde cu obiectul din lista de sarcini.

```js run
let admin, name; // can declare two variables at once
Copy link
Contributor

Choose a reason for hiding this comment

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

Putem traduce //comentariile și "strings"

@@ -2,23 +2,24 @@ importance: 4

---

# Uppercase const?
# onst cu majuscule?
Copy link
Contributor

@bogdanbacosca bogdanbacosca Dec 1, 2022

Choose a reason for hiding this comment

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

Suggested change
# onst cu majuscule?
# const cu majuscule?

literă lipsă

@javascript-translate-bot

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

@Alexandra2888
Copy link
Contributor Author

/done

Copy link
Contributor

@bogdanbacosca bogdanbacosca left a comment

Choose a reason for hiding this comment

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

Trebuie verificat și răspuns la sugestii.

@@ -1,4 +1,4 @@
In the code below, each line corresponds to the item in the task list.
În codul următor, fiecare linie corespunde cu obiectul din lista de sarcini.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
În codul următor, fiecare linie corespunde cu obiectul din lista de sarcini.
În codul de mai jos, fiecare linie corespunde cu articolul din lista de sarcini.

@javascript-translate-bot

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

@Alexandra2888
Copy link
Contributor Author

/done

Copy link
Contributor

@bogdanbacosca bogdanbacosca left a comment

Choose a reason for hiding this comment

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

Trebuie să ținem cont de sugestii înainte să trimitem codul înapoi.

@@ -122,7 +122,7 @@ Când valoarea este schimbată, data veche este stearsă din variabilă:
De asemenea putem declara două variabile și copia datele din una în cealaltă..

```js run
let hello = ''Buna lume!!';
let hello = ''Bună lume!!';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let hello = ''Bună lume!!';
let hello = 'Bună lume!';

o ' și ! în plus


A [variable](https://en.wikipedia.org/wiki/Variable_(computer_science)) is a "named storage" for data. We can use variables to store goodies, visitors, and other data.
O [variabilă](https://en.wikipedia.org/wiki/Variable_(computer_science)) este un "spațiu de stocare numit" pentru date. Putem folosi variabile pentru a stoca bunuri, visitatori, și alte date.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
O [variabilă](https://en.wikipedia.org/wiki/Variable_(computer_science)) este un "spațiu de stocare numit" pentru date. Putem folosi variabile pentru a stoca bunuri, visitatori, și alte date.
O [variabilă](https://en.wikipedia.org/wiki/Variable_(computer_science)) este un "spațiu de stocare numit" pentru date. Putem folosi variabile pentru a stoca bunuri, vizitatori, și alte date.


To create a variable in JavaScript, use the `let` keyword.
Pentru a crea o variabilă în JavaScript, folosim termenul`let` .
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Pentru a crea o variabilă în JavaScript, folosim termenul`let` .
Pentru a crea o variabilă în JavaScript, folosim cuvântul cheie `let` .


```js run
let message = 'Hello!'; // define the variable and assign the value
let message = 'Bună!'; // definește variabila și îi asignează valoarea
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let message = 'Bună!'; // definește variabila și îi asignează valoarea
let message = 'Bună!'; // definește variabila și îi atribuie valoarea

```

Some people also define multiple variables in this multiline style:
Unele persoane definesc, de asemenea, multiple variabile în acest stil pe mai multe linii:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Unele persoane definesc, de asemenea, multiple variabile în acest stil pe mai multe linii:
Unele persoane definesc de asemenea multiple variabile în acest stil pe mai multe linii:


An extra variable is good, not evil.
O variabilă în plus este bună, nu rea.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
O variabilă în plus este bună, nu rea.
O variabilă extra este bună, nu rea.

ori suplimentară


We can declare variables to store data by using the `var`, `let`, or `const` keywords.
Putem declara variabile pentru a stoca date folosind `var`, `let`, sau termenul `const`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Putem declara variabile pentru a stoca date folosind `var`, `let`, sau termenul `const`.
Putem declara variabile pentru a stoca date folosind `var`, `let`, sau cuvântul cheie `const`.


Variables should be named in a way that allows us to easily understand what's inside them.
Variabilele ar trebui denumite în așa natură încât să înțelegem ușor ce se află înăuntrul lor.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Variabilele ar trebui denumite în așa natură încât să înțelegem ușor ce se află înăuntrul lor.
Variabilele ar trebui să fie denumite într-un mod care să ne permită să înțelegem cu ușurință ce se află în ele.

<svg xmlns="http://www.w3.org/2000/svg" width="392" height="192" viewBox="0 0 392 192"><defs><style>@import url(https://fonts.googleapis.com/css?family=Open+Sans:bold,italic,bolditalic%7CPT+Mono);@font-face{font-family:&apos;PT Mono&apos;;font-weight:700;font-style:normal;src:local(&apos;PT MonoBold&apos;),url(/https/github.com/font/PTMonoBold.woff2) format(&apos;woff2&apos;),url(/https/github.com/font/PTMonoBold.woff) format(&apos;woff&apos;),url(/https/github.com/font/PTMonoBold.ttf) format(&apos;truetype&apos;)}</style></defs><g id="combined" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="variable-change.svg"><g id="noun_1211_cc" transform="translate(52.585 -3.958)"><path id="Shape" fill="#DBAF88" d="M24.415 93.154h112.557v42.95c0 .373-.078.863-.278 1.295-.2.432-16.575 35.56-16.575 35.56v-54.36l16.855-25.445 18.44-28.196H42.856l-18.44 28.196zM24.415 121.958v-28l-15 28"/><g id="Rectangle-5-+-&quot;World!&quot;" transform="translate(0 56.354)"><path id="Rectangle-5" fill="#FBF2EC" stroke="#AF6E24" stroke-width="2" d="M18.276 1.413L71.416 58.4 54.553 74.124 1.413 17.138 18.276 1.413z"/><text id="&quot;World!&quot;" fill="#AF6E24" font-family="OpenSans-Bold, Open Sans" font-size="14" font-weight="bold" transform="rotate(47 38.498 40.367)"><tspan x="9.006" y="46.867">&quot;Lume!&quot;</tspan></text></g><g id="Rectangle-5-+-&quot;World!&quot;-2" transform="rotate(-67 95.75 -34.63)"><path id="Rectangle-5" fill="#FBF2EC" stroke="#AF6E24" stroke-width="2" d="M18.276 1.413L71.416 58.4 54.553 74.124 1.413 17.138 18.276 1.413z"/><text id="&quot;Hello!&quot;" fill="#AF6E24" font-family="OpenSans-Bold, Open Sans" font-size="14" font-weight="bold" transform="rotate(47 38.578 39.758)"><tspan x="9.085" y="46.258">&quot;Bună
Copy link
Contributor

Choose a reason for hiding this comment

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

Nu schimbăm numele variabilelor. message trebuie lăsat așa cum e.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

si aici e schimbat chiar daca nu e marcat outdated

<svg xmlns="http://www.w3.org/2000/svg" width="166" height="145" viewBox="0 0 166 145"><defs><style>@import url(https://fonts.googleapis.com/css?family=Open+Sans:bold,italic,bolditalic%7CPT+Mono);@font-face{font-family:&apos;PT Mono&apos;;font-weight:700;font-style:normal;src:local(&apos;PT MonoBold&apos;),url(/https/github.com/font/PTMonoBold.woff2) format(&apos;woff2&apos;),url(/https/github.com/font/PTMonoBold.woff) format(&apos;woff&apos;),url(/https/github.com/font/PTMonoBold.ttf) format(&apos;truetype&apos;)}</style></defs><g id="combined" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="noun_1211_cc-+-Message" transform="translate(13 3)"><g id="noun_1211_cc"><path id="Shape" fill="#DBAF88" d="M17 37.196h112.558v42.95c0 .373-.079.862-.279 1.294-.2.433-16.574 35.56-16.574 35.56V62.64l16.854-25.444L148 9H35.44L17 37.196zM17 66V38L2 66"/><g id="Rectangle-5-+-&quot;Lume!&quot;" transform="translate(15)"><path id="Rectangle-5" fill="#FBF2EC" stroke="#AF6E24" stroke-width="2" d="M18.861 1.809l53.14 56.985L55.14 74.52 1.999 17.533 18.86 1.81z"/><text id="&quot;Hello!&quot;" fill="#AF6E24" font-family="OpenSans-Bold, Open Sans" font-size="14" font-weight="bold" transform="rotate(47 40.083 39.762)"><tspan x="10.591" y="46.262">&quot;Bună!&quot;</tspan></text></g><path id="Shape" fill="#DBAF88" d="M0 68v54.73c0 3.42 1.484 5.27 4.387 5.27h100.086c3.122 0 5.527-2.548 5.527-3.476V68H0z"/></g><text id="message" fill="#FFF" font-family="OpenSans-Bold, Open Sans" font-size="18" font-weight="bold"><tspan x="17" y="105">mesaj</tspan></text></g></g></svg>
Copy link
Contributor

Choose a reason for hiding this comment

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

aici la fel

@javascript-translate-bot

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

@Alexandra2888
Copy link
Contributor Author

Alexandra2888 commented Dec 3, 2022

Acestea nu mi-au aparut chiar daca am dat See hidden. O sa le rezolv.

@bogdanbacosca
Copy link
Contributor

bogdanbacosca commented Dec 3, 2022

@Alexandra2888 Nu erau acolo înainte, le-am adăugat la ultimul review. Au fost lucruri repetitive și nu le-am marcat pe toate de la început.

@Alexandra2888
Copy link
Contributor Author

/done

Translated smart headers and other minor improvements.
synced with main repo and translated
Copy link
Contributor

@bogdanbacosca bogdanbacosca left a comment

Choose a reason for hiding this comment

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

Am făcut câteva modificări și adaosuri minore înainte de aprobare, ținând cont că deja s-a lucrat destul de mult la acest PR.
Un detaliu de reținut pentru viitor - putem traduce și conținutul din smart header.
De asemenea, trebuie să fim atenți la cele mai mici detalii: de la liniile din cod până la formatarea codului și spațiile dintre caractere.
PR aprobat.

@bogdanbacosca bogdanbacosca merged commit 986cf62 into javascript-tutorial:master Dec 6, 2022
@javascript-translate-bot

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants