| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| Yeah, looks strange indeed. | ||
| Sì, sembra strano. | ||
|
|
||
| But `instanceof` does not care about the function, but rather about its `prototype`, that it matches against the prototype chain. | ||
| Ma `instanceof` non prende in considerazione la funzione, ma piuttosto il suo `prototype`, che trova riscontro nella catena dei prototye. | ||
|
|
||
| And here `a.__proto__ == B.prototype`, so `instanceof` returns `true`. | ||
| In questo caso `a.__proto__ == B.prototype`, quindi `instanceof` ritorna `true`. | ||
|
|
||
| So, by the logic of `instanceof`, the `prototype` actually defines the type, not the constructor function. | ||
| Quindi, secondo la logica di `instanceof`, è il `prototype` a definire il tipo, non il costruttore. |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.