Skip to content

Instantly share code, notes, and snippets.

@jikeytang
Last active August 29, 2015 14:05
Show Gist options
  • Save jikeytang/78f3ea71195e3b7d7c0d to your computer and use it in GitHub Desktop.
Save jikeytang/78f3ea71195e3b7d7c0d to your computer and use it in GitHub Desktop.
[ Javascript ] - 20140825-题目1
function f(){ return f; }
new f() instanceof f;
求出以上表达式的值,为什么?
PS:
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。
```javascript
// you code
```
2. 粘贴代码时请使用shift+tab,缩进前面的空白。
@zhanhongtao
Copy link

false

构造函数返回非基本类型值时, 使用返回值.

@LZ0211
Copy link

LZ0211 commented May 15, 2015

false
new f() === f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment