在Javascript中,保留关键字"short"有什么作用?

In Javascript, what does the reserved keyword "short" do?

我只是想在 JavaScript 中找到关键字 short 的定义和用法。我不关心向后兼容性等问题,也就是说我不想回答是否、如何以及为什么它可能是最新语法。我只想要定义。一个简单的例子是最好的。谢谢你。

它们属于 ECMAScript 规范所谓的未来关键字

They have no special functionality at present, but they might at some future time, so they cannot be used as identifiers.

short 作为保留字是旧 ECMAScript 规范的一部分:

The following are reserved as future keywords by older ECMAScript specifications (ECMAScript 1 till 3)
[...] short [...]

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords

在 ECMAScript 5/6 中,short 已从保留字列表中删除。尽管如此,为了与未实现任何一个的旧浏览器兼容,您无论如何都不应该使用它。

我猜他们计划将它用于 Java "Storing a whole number between -32768 to 32767." 中的用途,但后来决定不需要该整数类型,因此他们在 ECMAScript 5/6 标准中删除了它.w3schools