Skip to content

Commit 371ce77

Browse files
authored
Update article.md
There was some parts of the text untranslated.
1 parent 848473b commit 371ce77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

1-js/09-classes/01-class/article.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Ci sono però delle importanti differenze.
166166
167167
alert(User); // class User { ... }
168168
```
169-
There are other differences, we'll see them soon.
169+
Ci sono altre differenze, gli scopriremo più avanti.
170170

171171
2. I metodi delle classi non sono numerabili. La definizione di una classe imposta il flag `enumerable` a `false` per tutti i metodi all'interno di `"prototype"`.
172172
@@ -337,11 +337,11 @@ alert(user.name); // John
337337
338338
### Creazione di metodi vincolati a campi di classe
339339
340-
As demonstrated in the chapter <info:bind> functions in JavaScript have a dynamic `this`. It depends on the context of the call.
340+
Come dimostrato nel capitolo <info:bind> le funzioni in JavaScript hanno un `this` dinamico. Dipende dal contesto della chiamata.
341341
342-
So if an object method is passed around and called in another context, `this` won't be a reference to its object any more.
342+
Quindi, se un metodo di un object viene passato e chiamato in un altro contesto, `this` non sarà più un riferimento al suo object.
343343
344-
For instance, this code will show `undefined`:
344+
Per esempio, questo codice mostrerà `undefined`:
345345
346346
```js run
347347
class Button {

0 commit comments

Comments
 (0)