Meaning of '{ }' in javascript

后端 未结 7 675
余生分开走
余生分开走 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.

    0 讨论(0)
提交回复
热议问题