Value and reference types

后端 未结 3 2006
礼貌的吻别
礼貌的吻别 2021-02-04 02:46

I know that there are 6 data types in JavaScript.

What are the \"reference\" types in JavaScript and what are the \"value\" data types in JavaScript?. Could someone list

3条回答
  •  时光说笑
    2021-02-04 03:12

    From the standard#sec-8

    The ECMAScript language types are Undefined, Null, Boolean, String, Number, and Object

    The only "reference" type is the Object.

提交回复
热议问题