You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/09-classes/01-class/article.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ Ci sono però delle importanti differenze.
166
166
167
167
alert(User); // class User { ... }
168
168
```
169
-
There are other differences, we'll see them soon.
169
+
Ci sono altre differenze, che scopriremo più avanti.
170
170
171
171
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"`.
172
172
@@ -337,11 +337,11 @@ alert(user.name); // John
337
337
338
338
### Creazione di metodi vincolati a campi di classe
339
339
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 che dipende dal contesto della chiamata.
341
341
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.
0 commit comments