Objects by armino-dev · Pull Request #39 · javascript-tutorial/ro.javascript.info
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
Objects #39
Changes from all commits
Commits
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
15 changes: 7 additions & 8 deletions 1-js/04-object-basics/01-object/2-hello-object/task.md
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
2 changes: 1 addition & 1 deletion 1-js/04-object-basics/01-object/3-is-empty/_js.view/solution.js
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
2 changes: 1 addition & 1 deletion 1-js/04-object-basics/01-object/3-is-empty/solution.md
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 +1 @@ | ||
| Just loop over the object and `return false` immediately if there's at least one property. | ||
| Se va executa o buclă asupra obiectului și se va `returna false` imediat ce se întalnește o proprietate. |
7 changes: 3 additions & 4 deletions 1-js/04-object-basics/01-object/3-is-empty/task.md
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
10 changes: 5 additions & 5 deletions 1-js/04-object-basics/01-object/4-const-object/solution.md
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,19 +1,19 @@ | ||
| Sure, it works, no problem. | ||
| Bineînțeles, funcționează fără probleme. | ||
|
|
||
| The `const` only protects the variable itself from changing. | ||
| Cuvântul `const` protejează numai modificarea variabilei în sine. | ||
|
|
||
| In other words, `user` stores a reference to the object. And it can't be changed. But the content of the object can. | ||
| Cu alte cuvinte, `user` stochează o referință a obiectului. Și nu poate fi modificată. În schimb, conținutul obiectului se poate modifica. | ||
|
|
||
| ```js run | ||
| const user = { | ||
| name: "John" | ||
| }; | ||
|
|
||
| *!* | ||
| // works | ||
| // funcționează | ||
| user.name = "Pete"; | ||
| */!* | ||
|
|
||
| // error | ||
| // eroare | ||
| user = 123; | ||
| ``` |
6 changes: 3 additions & 3 deletions 1-js/04-object-basics/01-object/4-const-object/task.md
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
8 changes: 4 additions & 4 deletions 1-js/04-object-basics/01-object/5-sum-object/task.md
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
14 changes: 6 additions & 8 deletions 1-js/04-object-basics/01-object/8-multiply-numeric/task.md
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