Javascript maximum size for types?

后端 未结 3 1007
情书的邮戳
情书的邮戳 2020-11-30 13:30

Looking into javascript types I\'m trying to find out what the maximum storage size for some data types are. For instance, I set up a quick recursive algo to increase var si

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 14:11

    ECMA section 6.1.4 is explicit about this.

    "The String type is the set of all ordered sequences of zero or more 16-bit unsigned integer values (“elements”) up to a maximum length of 2^53-1 elements"

提交回复
热议问题