JS basic data types and reference types most fundamental difference

Stack memory and heap memory: https: //segmentfault.com/a/1190000015118062

        https://segmentfault.com/a/1190000016389376

Variables: storage space in memory to store data, and renewed a name

Data Type: The data structures stored in memory

Function: memory package step task list code segments, renewed a name.

        In fact, only the function name is a reference to a common variable function object

  Let JS engine in accordance with the steps of a list of functions, tasks

 js engine: https://www.jianshu.com/p/93d756db8c81

Guess you like

Origin www.cnblogs.com/zhangchs/p/11116440.html