Meaning of '{ }' in javascript

后端 未结 7 691
余生分开走
余生分开走 2021-02-07 17:37

What does assigning a variable to {}, mean? Is that initializing it to a function? I have code in a javascript file that says this

GLGE.Wavefront =          


        
7条回答
  •  鱼传尺愫
    2021-02-07 18:20

    This is javascript object notation. Particularly {} means empty object, the same as new Object();. See json.org.

提交回复
热议问题