ES5 Study

Keywords

 

break

 

do

 

instanceof

 

typeof

 

case

 

else

 

new

 

var

 

catch

 

finally

 

return

 

void

 

continue

 

for

 

switch

 

while

 

debugger

 

function

 

this

 

with

 

default

 

if

 

throw

 

delete

 

in

 

try

 

 

Future Reserved words

class

 

enum

 

extends

 

super

 

const

 

export

 

import

 

implements

 

let

 

private

 

public

 

yield

 

interface

 

package

 

protected

 

static

 

 

ECMAScript language types: Undefined, Null, Boolean, String, Number and Object.

 

A specification type corresponds to meta-values that are used within algorithms to describe the semantics of ECMAScript language constructs and ECMAScript language types. The specification types are Reference, List, Completion, Property Descriptor, Property Identifier, Lexical Environment, and Environment Record. Specification type used to describe intermediate results of EScript expression evaluation, but cannot be stored as properties of objects or values of EScript language variables.

 

Undefined Type-undefined,

Null Type - null,

Boolean Type - true or false,

String Type - set of all finite ordered sequences of zero or more 16-bit unsigned integer values("elements").

Number Type - NaN, +Infinity(Infinity), -Infinity, +0(0), -0,

Object Type - a collection of properties. Each property is either a named data property, a named accessor property, or an internal property.

    data property: associates a name with an ECMAScript language value and a set of Boolean attributes

    accessor property: associates a name with one or two accessor functions, and a set of Boolean attributes. It used to store or retrieve an ECMAScript language value that is associated with the property.

    internal property: has no name and is not directly accessible via EScript language operators. It exist purely for specification purposes.

 

Two kinds of access for named(non-internal) properties: get and put, corresponding to retrieval and assignment, respectively.

 

Attributes of a Named Data Property:

[[Value]], [[Writable]], [Enumerable]], [[Configurable]]

Attributes of a Named Accessor Property:

[[Get]], [[Set]], [[Enumerable]], [[Configurable]]

 

Default Attribute Values:

Attribute Name

 

Default Value

 

[[Value]]

 

 

undefined

 

[[Get]]

 

 

undefined

 

[[Set]]

 

 

undefined

 

[[Writable]]

 

 

false

 

[[Enumerable]]

 

 

false

 

[[Configurable]]

 

 

false

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值