Prototype methods, objects without __proto__ by longo-andrea · Pull Request #213 · javascript-tutorial/it.javascript.info

@longo-andrea

@longo-andrea

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

Dorin-David

- [obj.hasOwnProperty(key)](mdn:js/Object/hasOwnProperty): ritorna `true` se `obj` possiede una sua chiave `key` (non ereditata).

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`.

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`.

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.

Dorin-David

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

@javascript-translate-bot

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

pasor1

- [obj.hasOwnProperty(key)](mdn:js/Object/hasOwnProperty): ritorna `true` se `obj` possiede una sua chiave `key` (non ereditata).

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`.

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>

@javascript-translate-bot

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