Primitive value vs Reference value

前端 未结 7 1576
执念已碎
执念已碎 2020-11-22 08:23

I read a book called \"Professional Javascript for web developer\" and it says: \"Variable is assigned by Reference value or Primitive Value. Reference values are objects st

7条回答
  •  名媛妹妹
    2020-11-22 08:40

    A primitive value is a datum that is represented at its lowest level of the language implementation and in JavaScript is one of the following types: number, string, Boolean, undefined, and null.

提交回复
热议问题