Skip to content
New issue

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

偏门js面试题一道 #49

Open
hax opened this issue Oct 25, 2019 · 1 comment
Open

偏门js面试题一道 #49

hax opened this issue Oct 25, 2019 · 1 comment

Comments

@hax
Copy link
Owner

hax commented Oct 25, 2019

『偏门』的意思是,这个题目基本没有什么卵用,不建议使用。

例外情形:候选人自称『精通JavaScript』或自评JavaScript水平8分以上(刘鑫老师说,程显峰出过一个面试标准,8分意味着达到标准委员会水平)。


JS中一个array(数组)的length属性的最大值是:
【更具有迷惑性的表述是:JS中一个array(数组)可以包含的element(数组元素)最多可以有多少个:】

A. 2**31
B. 2**32 - 1
C. 2**32
D. 2**53 - 1


该题的变形形式(更难一点):

JS中『array index』的最大值是:

A. Number.MAX_VALUE
B. Infinity
C. 规范没有定义
D. 下表中的 _______

n 2n - 2 2n - 1 2n
31 2**31 - 2 2**31 - 1 2**31
32 2**32 - 2 2**32 - 1 2**32
53 2**53 - 2 2**53 - 1 2**53
64 2**64 - 2 2**64 - 1 2**64
@jincdream
Copy link

2**32 - 1
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants