-
Notifications
You must be signed in to change notification settings - Fork 31
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
bogdanbacosca
merged 33 commits into
javascript-tutorial:master
from
Alexandra2888:Variables
Dec 6, 2022
Merged
Variables #151
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ed3dc39
variables
Alexandra2888 043d333
fix a typo
Alexandra2888 c42701b
Apply suggestions from code review
bogdanbacosca 0b41a45
fix-1-solution.md
Alexandra2888 46fdd9a
fix 3-task.md
Alexandra2888 070962a
fix article.md
Alexandra2888 5a7f0a0
fix 3-task.md
Alexandra2888 f41283a
variables
Alexandra2888 a1b16e3
1-solution.md
Alexandra2888 d8f9162
update 1-solution.md per last request
Alexandra2888 e37acbc
update article.md
Alexandra2888 425a827
fix line in article.md
Alexandra2888 3ad9976
fix some lines and typos on article.md
Alexandra2888 0e33558
fix lines in article.md
Alexandra2888 7dc6241
fix line in article.md
Alexandra2888 efad982
Merge branch 'master' into Variables
Alexandra2888 e44643d
updated
bogdanbacosca 8af2879
update
bogdanbacosca 206cfbb
declare variables
Alexandra2888 80b8887
Merge branch 'Variables' of https://github.com/Alexandra2888/ro.javas…
Alexandra2888 947b6d3
uppercast-constant
Alexandra2888 cea67df
article.md
Alexandra2888 80bea6d
article.md
Alexandra2888 7fe85d0
article.md
Alexandra2888 215e676
article.md
Alexandra2888 6d5f956
article.md
Alexandra2888 e60bf8f
svg
Alexandra2888 3609555
final polish
bogdanbacosca 0832fdf
minor fix
bogdanbacosca 13da2ca
sync main
bogdanbacosca e9dcaf3
minor improvement
bogdanbacosca 873c53f
minor update
bogdanbacosca 14c9aa4
minor update
bogdanbacosca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| `# Variabile | ||||||
| # Variabile | ||||||
|
|
||||||
| În cea mai mare parte a timpului, o aplicație JavaScript are nevoie să lucreze cu informații. Aici sunt două example: | ||||||
| 1. Un magazin online -- informația ar putea include bunurile vândute și un coș de cumpărături. | ||||||
|
|
@@ -53,7 +53,7 @@ De asemenea putem declara multiple variabile într-o singură linie: | |||||
| let user = 'John', age = 25, message = 'Bună'; | ||||||
| ``` | ||||||
|
|
||||||
| Asta ar putea să apară mai scurt, dar nu recomandăm. De dragul unei lizibilități mai bune, te rugăm să folosești o singură linie de variabilă. | ||||||
| Asta ar putea să pară mai scurt, dar nu recomandăm. De dragul unei lizibilități mai bune, te rugăm să folosești o singură linie per variabilă. | ||||||
|
|
||||||
| Varianta pe mai multe linii este puțin mai lungă, dar mai ușor de citit: | ||||||
|
|
||||||
|
|
@@ -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!!'; | ||||||
|
|
||||||
| let message; | ||||||
|
|
||||||
|
|
@@ -174,23 +174,23 @@ let test123; | |||||
|
|
||||||
| Când numele conține cuvinte multiple, [camelCase](https://en.wikipedia.org/wiki/CamelCase) este folosit adesea. Acesta este: cuvintele vin unul după celălalt, fiecare cuvânt exceptând primul care începe cu majusculă: `numeleMeuFoarteLung`. | ||||||
|
|
||||||
| Ceea ce este interesant -- semnul de dolar `'$'` și bară jos `'_'` pot fi de asemenea folosite în nume. Acestea sunt simboluri obișnuite, la fel ca și literele, fără însemnătate specială. | ||||||
| Ceea ce este interesant -- semnul de dolar `'$'` și bara jos `'_'` pot fi de asemenea folosite în nume. Acestea sunt simboluri obișnuite, la fel ca și literele, fără însemnătate specială. | ||||||
|
|
||||||
| Aceste nume sunt valide: | ||||||
|
|
||||||
| ```js run untrusted | ||||||
| let $ = 1; // declarăm o variabilă cu numele "$" | ||||||
| let $ = 1; // a declarat o variabilă cu numele "$" | ||||||
| let _ = 2; // și apoi o variabilă cu numele "_" | ||||||
|
||||||
| let _ = 2; // și apoi o variabilă cu numele "_" | |
| let _ = 2; // și acum o variabilă cu numele "_" |
Outdated
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
| Și ultima notă. Există programatori leneși care, în loc să declare variabile noi, încearcă să le reutilizeze pe cele deja existente. | |
| Și ultima notă. Există programatori leneși care, în loc să declare variabile noi, tind să le reutilizeze pe cele deja existente. |
Outdated
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 variabilă în plus este bună, nu rea. | |
| O variabilă extra este bună, nu rea. |
ori suplimentară
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.
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.
o
'și!în plus