en.javascript.info/1-js/4-object-basics/05-constructor-new/1-two-functions-one-object/task.md
Ilya Kantor 4c531b5ae7 ok
2016-07-31 00:28:27 +03:00

19 lines
No EOL
465 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

importance: 2
---
# Две функции один объект
Возможны ли такие функции `A` и `B` в примере ниже, что соответствующие объекты `a,b` равны (см. код ниже)?
```js no-beautify
function A() { ... }
function B() { ... }
var a = new A;
var b = new B;
alert( a == b ); // true
```
Если да -- приведите пример кода с такими функциями.