-
Notifications
You must be signed in to change notification settings - Fork 49
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
Prototype methods, objects without __proto__ #213
Prototype methods, objects without __proto__ #213
Conversation
1-js/08-prototypes/04-prototype-methods/2-dictionary-tostring/solution.md
Outdated
Show resolved
Hide resolved
1-js/08-prototypes/04-prototype-methods/2-dictionary-tostring/solution.md
Outdated
Show resolved
Hide resolved
1-js/08-prototypes/04-prototype-methods/2-dictionary-tostring/solution.md
Outdated
Show resolved
Hide resolved
1-js/08-prototypes/04-prototype-methods/2-dictionary-tostring/task.md
Outdated
Show resolved
Hide resolved
|
||
All methods that return object properties (like `Object.keys` and others) -- return "own" properties. If we want inherited ones, we can use `for..in`. | ||
Tutti i metodi che ritornano le proprietà di un oggetto (come `Object.keys` e le altre) -- ritornano le proprietà "possedute". Se vogliamo ottenere anche le proprietà ereditate dobbiamo utilizzare un ciclo `for..in`. |
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.
Tutti i metodi che ritornano le proprietà di un oggetto (come `Object.keys` e le altre) -- ritornano le proprietà "possedute". Se vogliamo ottenere anche le proprietà ereditate dobbiamo utilizzare un ciclo `for..in`. | |
Tutti i metodi che ritornano le proprietà di un oggetto (come `Object.keys` e le altre) -- ritornano le proprietà scritte nell'oggetto stesso. Se vogliamo ottenere anche le proprietà ereditate dobbiamo utilizzare un ciclo `for..in`. |
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.
Secondo me qui "possedute" va bene, serve a far capire bene che non si parla di tutte le proprietà, ma solo di quelle non ereditate.
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.
Ottima traduzione! Ho suggerito un paio di modifiche
Please make the requested changes. After it, add a comment "/done". |
1-js/08-prototypes/04-prototype-methods/2-dictionary-tostring/solution.md
Outdated
Show resolved
Hide resolved
1-js/08-prototypes/04-prototype-methods/2-dictionary-tostring/task.md
Outdated
Show resolved
Hide resolved
|
||
All methods that return object properties (like `Object.keys` and others) -- return "own" properties. If we want inherited ones, we can use `for..in`. | ||
Tutti i metodi che ritornano le proprietà di un oggetto (come `Object.keys` e le altre) -- ritornano le proprietà "possedute". Se vogliamo ottenere anche le proprietà ereditate dobbiamo utilizzare un ciclo `for..in`. |
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.
Secondo me qui "possedute" va bene, serve a far capire bene che non si parla di tutte le proprietà, ma solo di quelle non ereditate.
Co-authored-by: Dorin-David <70648503+Dorin-David@users.noreply.github.com> Co-authored-by: Simone Pasini <66781510+pasor1@users.noreply.github.com>
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |
No description provided.